Asked By
anonymous
7060 points
N/A
Posted on - 07/22/2011
I want to know the inheritance in C so that I can use it in my job;
Please respond to me.
Thanks.
Answered By
tsadaf
0 points
N/A
#79400
Programming Language C, C++, Java, Visual Basic
Hi there,
Here is the Answer; it could help you I am sure. C programming Language is an Object Oriented Programming Language, where Inheritance and polymorphism are used. Inheritance means object defined in a base class as public, which is used in derived class to reuse the objects. In real the inheritance is the re-usability of objects in the derived class (private objects can't be used).
Examples are many but one example is here.
-
There is a base class cars and there are different classes of Toyota, Suzuki and Honda derived classes. All these classes Toyota, Suzuki and Honda derived classes have all the characteristics of base class cars and more of their own characteristics too.
-
Inheritance is as important as polymorphism. Inheritance makes objects reusable.
Â
Â
Good luck.
Â