- Abstract Class : - Classes which contain one or more abstract methods or abstract properties, such methods or properties do not provide implementation.
- These abstract methods or properties are implemented in the derived classes (Sub-classes).
- Abstract classes does not create any instances to that class objects.
Use of Abstract class:
- We can define some common functionalities in Abstract class (Super-class) and those can be used in derived classes (Sub classes).
No comments:
Post a Comment