What is Inheritance ? Explain Any Two Types of Inheritances with Memory. - Computer Science 1

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads

What is Inheritance ? Explain any two types of Inheritances with Memory.

Advertisement Remove all ads


The mechanism of deriving a new class from an old one is called as inheritance.The old class is referred as base class and new class is referred as derived class.

There are five types of inheritances in C++:

1. Single inheritance:

A derived class with only one base class is called as single inheritance. It has the form :

2. Multilevel inheritance:

The mechanism of deriving one class

Concept: C++ Programming
  Is there an error in this question or solution?
2014-2015 (March)



      Forgot password?
View in app×