O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Inheritance in C++

1.265 visualizações

Publicada em

One of the OOPS concept in C++..

Publicada em: Software
  • Seja o primeiro a comentar

Inheritance in C++

  1. 1. A DERIVED CLASS CAN ACQUIRE :- • PROPERTIES OF BASE CLASS • BEHAVIOUR OF BASE CLASS
  2. 2. AN EXAMPLE OF CLASS HIERARCHY VEHICLES TWO WHEELERS FOUR WHEELERS
  3. 3. SINGLE INHERITANCE A B
  4. 4. MULTIPLE INHERITANCE A B C
  5. 5. HIERARCHICAL INHERITANCE A C DB
  6. 6. MULTILEVEL INHERITANCE A B C
  7. 7. HYBRID INHERITANCE A DB C
  8. 8. CONCLUSION We can REUSE the methods and data of the existing class We can EXTEND the existing class by adding new data and new methods We can MODIFY the existing class by overloading its methods with your own implementations

×