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