+ 2
"To use an abstract class, you have to inherit it from another class" I donot understand the meaning of this sentence
please explain
2 Réponses
+ 3
abstract class is designed to be inherited by subclasses that either implement or override it's methods.
abstract class cannot be instantiated .the purpose. of this class is to provide a common definition of a base class. for example: student and teacher class inherit from person class , so person class can define as abstract class.
+ 3
In my opinion, you can consider an abstract class as a prototype for a concrete class