Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Inheritance,Virtual Baseclass&Functions

Inheritance,Virtual Baseclass&Functions

Ratings: (0)|Views: 4|Likes:
Published by JPR EEE

More info:

Published by: JPR EEE on Oct 07, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

10/07/2012

pdf

text

original

 
INHERITANCE
C++ strongly support the REUSABILTY, that is one class hasbeen written and tested already it can be adapted or used tocreate a new class.
The reusable property will reduce the debugging time
The time overhead and cost overhead will be reduced.
Thus, the reusability mechanism is apply to the Inheritance
Definition:
The mechanism of deriving the new class from an old one iscalled inheritance. The old class is called as base class and thenew class is called as derived class.
 
Types of Inheritance:
Single inheritance
Multiple inheritance
Multilevel inheritance
Hierarchical inheritance
Hybrid inheritance
Single Inheritance
The new class can be derived from only one base classis called single inheritance. This can be representedas,

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->