Академический Документы
Профессиональный Документы
Культура Документы
Contents
• Introduction of Inheritance 3
• Classes classification 4
Super class
Intermediate class
Child class
• Relation between classes 5
• Super class 6
• Intermediate class 7
• Child class 8
• Types of Inheritance 9
Single Inheritance
Multilevel Inheritance
Hierarchical Inheritance
• Single Inheritance 10
• Multilevel Inheritance 11
• Hierarchical Inheritance 12
• Indirect Mechanism of Inheritance 13
• A program demonstrating inheritance 14
• Limitations 15
INHERITANCE
• One of the most effective features of Oop’s paradigm.
Intermediate class
(mediating/dual class).
Child class
(sub/associate/derived/inherited class).
Relation between classes
Super class
Top located class
Service provider
(its properties accessed by all its lower level
class).
Intermediate class
Middle located class
• Multilevel Inheritance
• Hierarchical Inheritance
Single Inheritance
• A structure having one and only one parent as well
as child class.
Syntax:
super.<method-name>();
THANK YOU