types of inheritancec , inheritance ,data structures and algorithim oresentation , ++.pptx
starkdevil15
54 views
9 slides
Mar 13, 2024
Slide 1 of 9
1
2
3
4
5
6
7
8
9
About This Presentation
u have a presentation on -type of inheritance
Size: 146 KB
Language: en
Added: Mar 13, 2024
Slides: 9 pages
Slide Content
Inheritance and its Types Here is where your presentation begins
inheritance it is a mechanism in which one class inherits the property of other class is know as inheritance OR when one class can access the property of another class Ex--> father & son inheritance
Types of inheritance S ingle/simple inheritance M ultiple inheritance M ulti-level inheritance Hierarchical inheritance Hybrid inheritance
S ingle inheritance A class which contains only one base class and only one derive class is called single inheritance derive base Student exam
Multi-level inheritance child class1 B ase class child class2 When a base class is derived by a child class which further derived by another child class then it is known as multi level inheritance depositor cutomer borrower
M ultiple -inheritance B ase 2 Base class 1 derive class Base n When more than one base class are inherited by a derived class ,then such type of inheritance is called as multiple inheritance Example :- a child & father
Hierarchical inheritance D erive 1 derive2 base When one base class is inherited by more then one derived class , it is known as hierarchical inheritance, In this many programing problems can be cast into a hierarchical where certain features of one level are shared by many others below that level Derive class n Full time Part time employee
Hybrid inheritance exam Student result multi-level project Multiple inheritance We may require to combine two or more type of inheritence to design a programme the result is know as hybrid inh