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