Multiple Inheritance : C Language Tutorial
We can derive a class from any number of base classes. Deriving a class from more than one direct base class is called multiple inheritance. It is a feature of Object Oriented Programming.
Inheritance is the process by which new classes called derived classes are created from existing classes called base classes. This process saves time of the programmer because the code can be reused.
For example say we have a base class by name Team ,,,,than India, Australia, England will be its derived classes. This derived class will inherit all the features of the base class in C++ inheritance.
The derived class can also add its own features also.
Example of simple inheritance:
class Team //Sample
base class for c++ inheritance
public vehicle //Sample derived class for C++
COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM