Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

INHERITANCE(OOP's CONCEPT)

593 views

Published on

This slide shows a shortly description on INHERITANCE

Published in: Education, Sports
  • Be the first to comment

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

×