Advertisements

How many types Inheritance in C++

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

Offline
orlobadlca
Posts: 2
Joined: Thu May 05, 2011 7:27 pm
In c++ what is the main purpose of the Inheritance.
Which is the best Inheritance.

Interitance in C++

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

Offline
williamsjohn
Posts: 3
Joined: Tue Sep 20, 2011 5:17 pm
In C++, there are 3 kind of inheritance, public (most used), protected(rarely used) or private

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

Offline
Gabrielle99
Posts: 3
Joined: Tue Feb 21, 2012 2:54 pm
You could make "capacity" an object attribute. Non-containers would have a value of 0.

Why the hesitance to use RTTI?

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

Offline
AnthonyBell
Posts: 1
Joined: Wed Apr 04, 2012 9:07 pm
I like the idea of making "capacity" an object attribute.
vpn

Re: How many types Inheritance in C++

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

Offline
ecig12
Posts: 1
Joined: Wed Feb 20, 2013 2:58 pm
In c++ there are three type of types of inheritance.
Private
Protected
Public

Re: How many types Inheritance in C++

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

Offline
Twinkle
Posts: 2
Joined: Sun Jun 02, 2013 4:36 am
Hey


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

Thanks!