1.

Define abstract classes. Can we create objects or instances of abstract classes?

Answer»

A class with abstract METHODS is known as an abstract class. ALTHOUGH these methods are declared, they are not defined in the abstract classes. If these methods are to be utilized in a subclass, they must be SPECIFIED in that subclass solely.

No, we cannot create objects or instances of abstract classes. Because an abstract class lacks a complete implementation, no instances can be PRODUCED. It is possible to build instances of subclasses that INHERIT the abstract class.



Discussion

No Comment Found