What does inheritance mean in c++ ? Write down the importance of inheritance

Subject Object Oriented Programming
NU Year Set: 5.(a) Marks: 1+3=4 Year: 2011

The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important features of Object Oriented Programming.
Sub Class: The class that inherits properties from another class is called Subclass or Derived Class.
Super Class: The class whose properties are inherited by subclass is called Base Class or Superclass.

In an object-oriented programming language that is well designed, a function should be able to have functions that reside inside it. In addition to this, other functions should be processed as input and output as well. When an OOP language uses these features, it will utilize a design that is simple and consistent.

 

This is an important concept that can make the difference between a good programming language and a great programming language. When the code is written, the subroutine should be capable of returning a function. When this is done, the argument can be raised to a higher nth power. Once this has occurred, it can be used in a number of different ways. 

Login to post your comment.