Presentation is loading. Please wait.

Presentation is loading. Please wait.

OBJECT ORIENTED PROGRAMMING WITH C++ Team Members: Lalitha.V.P(Team Head) Manonmani.S Pavithra.H.

Similar presentations


Presentation on theme: "OBJECT ORIENTED PROGRAMMING WITH C++ Team Members: Lalitha.V.P(Team Head) Manonmani.S Pavithra.H."— Presentation transcript:

1 OBJECT ORIENTED PROGRAMMING WITH C++ Team Members: Lalitha.V.P(Team Head) Manonmani.S Pavithra.H

2 Different kinds of Inheritance Multiple Inheritance Multi level Inheritance Hierarchical Inheritance Hybrid Inheritance

3 Multiple Inheritance A class derives from more than one class Class C derived from classes A and B CLASS ACLASS B CLASS C

4 Multiple Inheritance Syntax class :,,.. { /* defination of the derived class */ };

5 Ambiguities in Multiple Inheritance Identical Members in more than one base class. Diamond-Shaped Inheritancc.

6 Multi-Level Inheritance Class C is derived from B,which in turn derived from A. CLASS A CLASS B CLASS C

7 Hierarchical Inheritance Class A is the common base class for classes B and C CLASS A CLASS B CLASS C

8 Hybrid Inheritance Mixture of all the above kinds of inheritances.


Download ppt "OBJECT ORIENTED PROGRAMMING WITH C++ Team Members: Lalitha.V.P(Team Head) Manonmani.S Pavithra.H."

Similar presentations


Ads by Google