How many types Inheritance in C++

Post your questions, doubts and issues related to C/C++ Programming
no avatar
orlobadlca
 
Posts: 2
Joined: Thu May 05, 2011 7:27 pm

How many types Inheritance in C++

by orlobadlca » Mon Jun 06, 2011 5:20 pm

In c++ what is the main purpose of the Inheritance.
Which is the best Inheritance.

no avatar
williamsjohn
 
Posts: 3
Joined: Tue Sep 20, 2011 5:17 pm

Interitance in C++

by williamsjohn » Tue Sep 20, 2011 7:42 pm

In C++, there are 3 kind of inheritance, public (most used), protected(rarely used) or private

no avatar
Gabrielle99
 
Posts: 3
Joined: Tue Feb 21, 2012 2:54 pm

by Gabrielle99 » Tue Feb 21, 2012 2:58 pm

You could make "capacity" an object attribute. Non-containers would have a value of 0.

Why the hesitance to use RTTI?

no avatar
AnthonyBell
 
Posts: 1
Joined: Wed Apr 04, 2012 9:07 pm

by AnthonyBell » Wed Apr 04, 2012 9:26 pm

I like the idea of making "capacity" an object attribute.

no avatar
ecig12
 
Posts: 1
Joined: Wed Feb 20, 2013 2:58 pm

Re: How many types Inheritance in C++

by ecig12 » Wed Feb 20, 2013 3:04 pm

In c++ there are three type of types of inheritance.
Private
Protected
Public

no avatar
Twinkle
 
Posts: 2
Joined: Sun Jun 02, 2013 4:36 am

Re: How many types Inheritance in C++

by Twinkle » Sun Jun 02, 2013 5:03 am

Hey


I am a bit confused here! Aren't single inheritance, multiple inheritance, multilevel inheritance the types of inheritance? :roll:

Thanks!

Return to C/C++ Programming