1.

Give the definition of abstract classes. Can we make objects or instances of these classes?

Answer»

An abstract class is a type of class that has abstract methods. The abstract CLASSES do not DEFINE these methods, despite the fact that they are declared. These methods must be PROVIDED in a subclass only if they are to be used in that subclass.

No, we can't make abstract classes into objects or instances. There can be no instances of an abstract class since it LACKS a complete implementation. Subclasses that inherit the abstract class can be used to create instances.



Discussion

No Comment Found