SlideShare ist ein Scribd-Unternehmen logo
1 von 11
INHERITANCE
What is Inheritance?

Inheritance is concept of obtaining
 the properties of object from one
  class to object of another class.
    It’s been mainly used for its
             Reusability.
Types of Inheritance

There are six types of Inheritance
1.   Single Inheritance
2.   Multiple Inheritance
3.   Multilevel Inheritance
4.   Hierarchical Inheritance
5.   Hybrid Inheritance
6.   Multipart Inheritance
Single Inheritance
                A     Base Class




                B      Derived Class



  •It contains one Base Class and one
             Derived Class.
•Contents of the Base Class is Inherited
         into the Derived Class.
Multiple Inheritance
Base Class      A           B              Base Class




                      C
                                Derived Class



      •Two or More Base Class is Inherited
          into a Single Derived Class.
Hierarchical Inheritance
                           A        Base Class




Derived Class 1      B             C             Derived Class 2




             •Hierarchical Inheritance is straight
              opposite to Multiple Inheritance.
           •One Base Class is Inherited into two or
                     more Derived Class.
Multi Level Inheritance
                A       Base Class


                B      Derived Class
                C      Base Class


               C1         Base Class  Derived Class



 •One of the different form of Inheritance.
  •Here, Base Class is Inherited by another
Derived Class and Derived Class changes into
Base Class and then Inherited into a Derived
                    Class.
Hybrid Inheritance
                   A         Base Class                   Derived Class


                                                              D1
                   B        Derived Class
Base Class         C

                                            C1
                 Derived Class
                                            D    Base Class

                  •One of the complex type of Inheritance.
             •Here Base Class is Inherited to Derived Class and
             the Derived Class changes to Base Class and once
                        again Inherited to Derived Class.
               •It is a combination of Single Inheritance and
                            Multi Level Inheritance.
Multipart Inheritance
                                 Base Class
                          A



               C                         D
Derived                                       Derived
Class                                         Class


                           Y

                       Derived
                       Class

          •The Diagram itself explains that it is
           possible to have a single Base Class
          and that Base Class is Inherited into a
          collection of Derived Class in any Part
Representation of Symbol

             Base Class


             Derived Class


             Base Class Inherited to Derived
             Class

             Derived Class Inherited to Base
             Class
Slides Created by

                         Srinath
Thanks for watching the Slide

Weitere ähnliche Inhalte

Was ist angesagt?

Constructor overloading & method overloading
Constructor overloading & method overloadingConstructor overloading & method overloading
Constructor overloading & method overloadinggarishma bhatia
 
Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function Kamlesh Makvana
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++Vishal Patil
 
Encapsulation in C++
Encapsulation in C++Encapsulation in C++
Encapsulation in C++Hitesh Kumar
 
Inheritance in oops
Inheritance in oopsInheritance in oops
Inheritance in oopsHirra Sultan
 
Functions in c language
Functions in c language Functions in c language
Functions in c language tanmaymodi4
 
friend function(c++)
friend function(c++)friend function(c++)
friend function(c++)Ritika Sharma
 
Multiple inheritance possible in Java
Multiple inheritance possible in JavaMultiple inheritance possible in Java
Multiple inheritance possible in JavaKurapati Vishwak
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++Muhammad Waqas
 
Object Oriented Programming Concepts using Java
Object Oriented Programming Concepts using JavaObject Oriented Programming Concepts using Java
Object Oriented Programming Concepts using JavaGlenn Guden
 
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...cprogrammings
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP conceptsAhmed Farag
 

Was ist angesagt? (20)

Python-DataAbstarction.pptx
Python-DataAbstarction.pptxPython-DataAbstarction.pptx
Python-DataAbstarction.pptx
 
inheritance c++
inheritance c++inheritance c++
inheritance c++
 
Constructor overloading & method overloading
Constructor overloading & method overloadingConstructor overloading & method overloading
Constructor overloading & method overloading
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Managing I/O in c++
Managing I/O in c++Managing I/O in c++
Managing I/O in c++
 
Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
Encapsulation in C++
Encapsulation in C++Encapsulation in C++
Encapsulation in C++
 
Inheritance in oops
Inheritance in oopsInheritance in oops
Inheritance in oops
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
 
friend function(c++)
friend function(c++)friend function(c++)
friend function(c++)
 
Multiple inheritance possible in Java
Multiple inheritance possible in JavaMultiple inheritance possible in Java
Multiple inheritance possible in Java
 
Inheritance and polymorphism
Inheritance and polymorphism   Inheritance and polymorphism
Inheritance and polymorphism
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Object Oriented Programming Concepts using Java
Object Oriented Programming Concepts using JavaObject Oriented Programming Concepts using Java
Object Oriented Programming Concepts using Java
 
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
Python-Inheritance.pptx
Python-Inheritance.pptxPython-Inheritance.pptx
Python-Inheritance.pptx
 

Andere mochten auch

Inheritance in JAVA PPT
Inheritance  in JAVA PPTInheritance  in JAVA PPT
Inheritance in JAVA PPTPooja Jaiswal
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++Abhishek Pratap
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++Laxman Puri
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++Vineeta Garg
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slidesSrinath Dhayalamoorthy
 
Locah Project Show and Tell
Locah Project Show and TellLocah Project Show and Tell
Locah Project Show and TellAdrian Stevenson
 
How would you implement multiple inheritance in java
How would you implement multiple inheritance in javaHow would you implement multiple inheritance in java
How would you implement multiple inheritance in javaTyagi2636
 
Inheritance & Polymorphism - 1
Inheritance & Polymorphism - 1Inheritance & Polymorphism - 1
Inheritance & Polymorphism - 1PRN USM
 
abitha-pds inheritance presentation
abitha-pds inheritance presentationabitha-pds inheritance presentation
abitha-pds inheritance presentationabitha ben
 
Chapter 04 inheritance
Chapter 04 inheritanceChapter 04 inheritance
Chapter 04 inheritanceNurhanna Aziz
 
Inheritance
InheritanceInheritance
InheritanceTech_MX
 

Andere mochten auch (20)

Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance in JAVA PPT
Inheritance  in JAVA PPTInheritance  in JAVA PPT
Inheritance in JAVA PPT
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slides
 
Constructors & destructors
Constructors & destructorsConstructors & destructors
Constructors & destructors
 
Java applets
Java appletsJava applets
Java applets
 
C++ Inheritance
C++ InheritanceC++ Inheritance
C++ Inheritance
 
Locah Project Show and Tell
Locah Project Show and TellLocah Project Show and Tell
Locah Project Show and Tell
 
How would you implement multiple inheritance in java
How would you implement multiple inheritance in javaHow would you implement multiple inheritance in java
How would you implement multiple inheritance in java
 
Lecture4
Lecture4Lecture4
Lecture4
 
Inheritance & Polymorphism - 1
Inheritance & Polymorphism - 1Inheritance & Polymorphism - 1
Inheritance & Polymorphism - 1
 
abitha-pds inheritance presentation
abitha-pds inheritance presentationabitha-pds inheritance presentation
abitha-pds inheritance presentation
 
Chapter 04 inheritance
Chapter 04 inheritanceChapter 04 inheritance
Chapter 04 inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 

Mehr von Srinath Dhayalamoorthy

இசை கருவிகளின் வகைகள் Spring instruments
இசை கருவிகளின் வகைகள்   Spring instrumentsஇசை கருவிகளின் வகைகள்   Spring instruments
இசை கருவிகளின் வகைகள் Spring instrumentsSrinath Dhayalamoorthy
 
இசை கருவிகளின் வகைகள் - Wind instruments
இசை கருவிகளின் வகைகள் - Wind instrumentsஇசை கருவிகளின் வகைகள் - Wind instruments
இசை கருவிகளின் வகைகள் - Wind instrumentsSrinath Dhayalamoorthy
 
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்Srinath Dhayalamoorthy
 
IPC Section Part - 2 | Import Insurance to know | Offence and Punishment
IPC Section Part - 2 | Import Insurance to know | Offence and PunishmentIPC Section Part - 2 | Import Insurance to know | Offence and Punishment
IPC Section Part - 2 | Import Insurance to know | Offence and PunishmentSrinath Dhayalamoorthy
 

Mehr von Srinath Dhayalamoorthy (9)

இசை கருவிகளின் வகைகள் Spring instruments
இசை கருவிகளின் வகைகள்   Spring instrumentsஇசை கருவிகளின் வகைகள்   Spring instruments
இசை கருவிகளின் வகைகள் Spring instruments
 
இசை கருவிகளின் வகைகள் - Wind instruments
இசை கருவிகளின் வகைகள் - Wind instrumentsஇசை கருவிகளின் வகைகள் - Wind instruments
இசை கருவிகளின் வகைகள் - Wind instruments
 
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்
இசை கருவிகளின் வகைகள் - தோலிசைக் கருவிகள்
 
Best weapon to tackle covid 19
Best weapon to tackle covid 19Best weapon to tackle covid 19
Best weapon to tackle covid 19
 
How coronavirus spread in the World?
How coronavirus spread in the World? How coronavirus spread in the World?
How coronavirus spread in the World?
 
IPC Section Part - 2 | Import Insurance to know | Offence and Punishment
IPC Section Part - 2 | Import Insurance to know | Offence and PunishmentIPC Section Part - 2 | Import Insurance to know | Offence and Punishment
IPC Section Part - 2 | Import Insurance to know | Offence and Punishment
 
IPC sections | Indian Sarais Act 1887
IPC sections | Indian Sarais Act 1887IPC sections | Indian Sarais Act 1887
IPC sections | Indian Sarais Act 1887
 
Unix
UnixUnix
Unix
 
Servers
ServersServers
Servers
 

Kürzlich hochgeladen

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

Kürzlich hochgeladen (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

Inheritance

  • 2. What is Inheritance? Inheritance is concept of obtaining the properties of object from one class to object of another class. It’s been mainly used for its Reusability.
  • 3. Types of Inheritance There are six types of Inheritance 1. Single Inheritance 2. Multiple Inheritance 3. Multilevel Inheritance 4. Hierarchical Inheritance 5. Hybrid Inheritance 6. Multipart Inheritance
  • 4. Single Inheritance A Base Class B Derived Class •It contains one Base Class and one Derived Class. •Contents of the Base Class is Inherited into the Derived Class.
  • 5. Multiple Inheritance Base Class A B Base Class C Derived Class •Two or More Base Class is Inherited into a Single Derived Class.
  • 6. Hierarchical Inheritance A Base Class Derived Class 1 B C Derived Class 2 •Hierarchical Inheritance is straight opposite to Multiple Inheritance. •One Base Class is Inherited into two or more Derived Class.
  • 7. Multi Level Inheritance A Base Class B Derived Class C Base Class C1 Base Class  Derived Class •One of the different form of Inheritance. •Here, Base Class is Inherited by another Derived Class and Derived Class changes into Base Class and then Inherited into a Derived Class.
  • 8. Hybrid Inheritance A Base Class Derived Class D1 B Derived Class Base Class C C1 Derived Class D Base Class •One of the complex type of Inheritance. •Here Base Class is Inherited to Derived Class and the Derived Class changes to Base Class and once again Inherited to Derived Class. •It is a combination of Single Inheritance and Multi Level Inheritance.
  • 9. Multipart Inheritance Base Class A C D Derived Derived Class Class Y Derived Class •The Diagram itself explains that it is possible to have a single Base Class and that Base Class is Inherited into a collection of Derived Class in any Part
  • 10. Representation of Symbol Base Class Derived Class Base Class Inherited to Derived Class Derived Class Inherited to Base Class
  • 11. Slides Created by Srinath Thanks for watching the Slide