What are the advantages of inheritance?

Answer Posted / sidhi.r

In OOPs, the concept of inheritance provides the idea of
reusability. This means that we can add additional features
to an existing class without modifying it.
This is possible by deriving a new class from the existing
one. The new class will have combined features of both the
classes.

Is This Answer Correct ?    213 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types in oop?

677


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1713


Can main method override?

644


What is oops and why we use oops?

638


What is the renewal class?

2229






Write a program to reverse a string using recursive function?

1854


What are constructors in oop?

658


What is static in oop?

658


What is the point of polymorphism?

648


How Do you Code Composition and Aggregation in C++ ?

24363


what is graphics

2071


Explain virtual inheritance?

754


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1913


What is the important feature of inheritance?

707


Can we define a class within the interface?

629