INHERITANCE(OOP's CONCEPT)

408
-1

Published on

This slide shows a shortly description on INHERITANCE

Published in: Education, Sports
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
408
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
22
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

INHERITANCE(OOP's CONCEPT)

  1. 1. INHERITANCE
  2. 2. INHERITANCE means HEREDITY (TRANSFER QUALITIES/PROPERTIES FROM ONE GENERATION TO ANOTHER)
  3. 3. POP FUNCTION X PROPERTIES OF FUNCTION X PROPERTIES OF FUNCTION Y OOP CLASS X A B A B C D A B C D FUNCTION Y CLASS Y PROPERTIES OF BASE CLASS X PROPERTIES FROM BASE CLASS X PROPERTIES OF DERIVED CLASS Y
  4. 4. TYPES OF INHERITANCE SINGLE INHERITANCE MULTIPLE INHERITANCE HIERARCHICAL INHERITANCE MULTILEVEL INHERITANCE HYBRID INHERITANCE
  5. 5. SINGLE INHERITANCE X Base Class of Y Y Derived Class of X
  6. 6. MULTIPLE INHERITANCE Base Classes of Z X Y Z Derived Class of X&Y
  7. 7. HIERARCHICAL INHERITANCE Z W Base Class of W, X & Y X Y Derived Classes of Z
  8. 8. MULTILEVEL INHERITANCE X Y Z Base Class of Y Derived Class of X Base Class of Z Derived Class of Y
  9. 9. HYBRID INHERITANCE A W SINGLE INHERITANCE HIERARCHICAL INHERITANCE Base Class of Y Y X Derived Class of W, Base Class of X & Z Z Derived Classes of Y
  10. 10. B Z Base Class of X&Y Y X W Derived Class of X&Y

×