Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What are the advantages of Inheritance in C++?


Inheritance is mechanism to build a new class from existing one.

Advantage of Inheritance:

One of the key benefits of inheritance is to minimize the amount of duplicate code in an application by sharing common code amongst several subclasses, where equivalent code exists in two related classes. This also tends to result in a better organization of code and smaller, simpler compilation units.

advantage of inheritance in cplus

Inheritance can also make application code more flexible to change because classes that inherit from a common super class can be used interchangeably.

Reusability-> facility to use public methods of base class without rewriting the same.

Extensibility-> extending the base class logic as per business logic of the derived class

Data hiding-> base class can decide to keep some data private so that it cannot be altered by the derived class

Overriding-> With inheritance, we will be able to override the methods of the base class so that meaningful implementation of the base class method can be designed in the derived class.

TCCI is located in Bopal and Satellite in Ahmedabad. We teach all programming Languages to school- Engineering- BCA – MCA students, and Employee of Industry.

For more information about Inheritance in C++.

Call us @ 9825618292

Visit us @


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s