OOPS continued…. (final)
Published by admin under Technical on July 13, 2008We discussed about the encapsulation concept of the oops a week before. I received many mails regarding that. We shall now see the important concept Inheritance.
Inheritance is the most important concept of OOPS that makes the programing very much flexible. We saw that the data members in a class cannot be accessed by the member functions of other class. If we completed a class and want to access the data members for another function, we use the concept of friend class or inheritance. Inheritance is the natural concept. A son inherits his father’s nature. Similarly a class inherits another class nature. A class is called derived class that inherits another class which is base class. We can access the data members of the base class with the member functions of the derived class.
We shall finish this OOPS concept with this post. Mail me if you want programs and other conceptual clarity with examples.
i will give something more about oops
Add A Comment