1. Inheritance:
Acquiring the properties of one class to another class is called inheritance.
Inheritance provides reuse ability by allowing us to extend an existing class.
Four Type of Inheritance
1. Single Inheritance
2. Hierarchical Inheritance
3. Multi-level Inheritance
4. Multiple Inheritance(Achieved by Interface)
Acquiring the properties of one class to another class is called inheritance.
Inheritance provides reuse ability by allowing us to extend an existing class.
Four Type of Inheritance
1. Single Inheritance
2. Hierarchical Inheritance
3. Multi-level Inheritance
4. Multiple Inheritance(Achieved by Interface)
No comments:
Post a Comment