Types of Inheritance in C++
A class can inherit properties from one or more classes and from one or more levels.
On the basis of this concept, there are five types of inheritance.
Single Inheritance
In single inheritance, a class is derived from only one base class.
Multiple Inheritance
In this inheritance, a class is derived from more than one base class.
Hierarchical Inheritance
In this type, two or more classes inherit the properties of one base class.
Multilevel Inheritance
The mechanism of deriving a class from another derived class is known as multilevel inheritance. The process can be extended to an arbitrary number of levels.
Hybrid Inheritance
This type of inheritance includes more than one type of inheritance
To learn more about Inheritance , C++ , Programming .
Join TCCI @ Bopal and Satellite in Ahmedabad.
Call us @ 98256 18292.
Visit us @ http://tccicomputercoaching.com/
A class can inherit properties from one or more classes and from one or more levels.
On the basis of this concept, there are five types of inheritance.
Single Inheritance
In single inheritance, a class is derived from only one base class.
Multiple Inheritance
In this inheritance, a class is derived from more than one base class.
Hierarchical Inheritance
In this type, two or more classes inherit the properties of one base class.
Multilevel Inheritance
The mechanism of deriving a class from another derived class is known as multilevel inheritance. The process can be extended to an arbitrary number of levels.
Hybrid Inheritance
This type of inheritance includes more than one type of inheritance
To learn more about Inheritance , C++ , Programming .
Join TCCI @ Bopal and Satellite in Ahmedabad.
Call us @ 98256 18292.
Visit us @ http://tccicomputercoaching.com/
No comments:
Post a Comment