Abstract Class:
- We cannot use abstract classes to instantiate objects directly. For example, Shape s = new Shape(); is illegal because Shape is an abstract class.
- The abstract methods of an abstract class must be defined in its subclass.
- We cannot declare abstract constructors or abstract static methods.
No comments:
Post a Comment