Documente Academic
Documente Profesional
Documente Cultură
Inheritance
Introduction of Inheritance.
Example program.
• Features of Inheritance
• Example program
Features of Inheritance
• Reusability – Inheritance allows code
reusability.
3. Multilevel Inheritance
5. Hierarchical Inheritance
7. Multiple Inheritance
Single Inheritance
A Super class
B Sub class
Multilevel Inheritance
C
Hierarchical Inheritance
B C C
Multiple Inheritance
B A