+ 2
Abstract class
why do we said that To use an abstract class, you have to inherit it from another class?
3 Answers
+ 2
Because abstract have atleast one abstract method and which shloud be provided a concrete (implementation) to use that and to create an object. For that we need to inherit to another class which shloud provide abstract method defination. Until that we cannot create an object for abstract class, so without an object, we cannot use that class properties.
+ 2
Exactly, an abstract class is a restricted class from which no objects can be created and can only be accessed through inheritance.
+ 2
I understood from the second slide of abstract classes
thanks a lot