Thursday, September 15, 2011

Introduction to C++ class inheritance

In C++, inheritance is a technique in which a C++ class known as the derived class absorbs, utilizes and enhances the data and behavior of another class known the base class . C++ inheritance enhances object-oriented programming in a way that it saves program development time, and supports reuse of debugged high quality software. In c++ inheritance allows an object oriented programmer to focus on the larger picture rather than specific cases. Because different classes sometimes require similar data members, inheritance enables avoidance of duplication of codes in the same project environment. The base class captures the most common members and then supplies them to the derived classes with the help of inheritance technique. Details 

No comments:

Post a Comment