Saved Bookmarks
| 1. |
What is the difference between an abstract class and an interface? |
|
Answer» LET’s dig into the differences between an abstract class and an interface:
An abstract class has constructors while an interface ENCOMPASSES none. Ex. Abstract class: PUBLIC abstract class SHAPE{public abstract void draw();}Interface: public interface Paintable{void paint();} |
|