Inheritance

4,839 views

Published on

Types of Inheritance

Published in: Education, Sports, Technology
2 Comments
9 Likes
Statistics
Notes
  • @Hina Rj Thanks for viewing my presentation. I think you have asked about removing page numbers on the slides, if so the answer to that is to click-->Insert tab at the top of the PowerPoint window then Click on Slide Number at the top of the window to display the Header and Footer window. Remove the check mark from the Slide Number option.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • how we can remove pages from silde
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
4,839
On SlideShare
0
From Embeds
0
Number of Embeds
32
Actions
Shares
0
Downloads
328
Comments
2
Likes
9
Embeds 0
No embeds

No notes for slide

Inheritance

  1. 1. INHERITANCE
  2. 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. 3. Types of InheritanceThere are six types of Inheritance1. Single Inheritance2. Multiple Inheritance3. Multilevel Inheritance4. Hierarchical Inheritance5. Hybrid Inheritance6. Multipart Inheritance
  4. 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. 5. Multiple InheritanceBase Class A B Base Class C Derived Class •Two or More Base Class is Inherited into a Single Derived Class.
  6. 6. Hierarchical Inheritance A Base ClassDerived 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. 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 anotherDerived Class and Derived Class changes intoBase Class and then Inherited into a Derived Class.
  8. 8. Hybrid Inheritance A Base Class Derived Class D1 B Derived ClassBase 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. 9. Multipart Inheritance Base Class A C DDerived DerivedClass 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. 10. Representation of Symbol Base Class Derived Class Base Class Inherited to Derived Class Derived Class Inherited to Base Class
  11. 11. Slides Created by SrinathThanks for watching the Slide

×