Inheritance : C Language Tutorial
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.
class Team //Sample
base class for c++ inheritance
public vehicle //Sample derived class for C++
COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM