Monday, April 27, 2009

Type of Inheritance and Syntax

Type of Inheritance

Single Inheritance
Multiple Inheritance
Multilevel Inheritance
Hierarchical Inheritance
Hybrid Inheritance


Syntax:

Class derivedclassname : mode baseclassname
{
New member variable declaration
- - - - -
New member function declaration (or) definition
}

No comments:

Post a Comment