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
What are the data types in oop?
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?
Can main method override?
What is oops and why we use oops?
What is the renewal class?
Write a program to reverse a string using recursive function?
What are constructors in oop?
What is static in oop?
What is the point of polymorphism?
How Do you Code Composition and Aggregation in C++ ?
what is graphics
Explain virtual inheritance?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is the important feature of inheritance?
Can we define a class within the interface?