What are the advantages of inheritance?
Answer Posted / awais zahur
inheritance has two main advantages:
1.extendability
we can extend the already made classes by adding some new
features.
2.maintainability
it is easy to debug a program when divided in parts.
inheritance provides an opportunity to capture the problem
| Is This Answer Correct ? | 80 Yes | 14 No |
Post New Answer View All Answers
What is polymorphism oop?
What is destructor give example?
What is use of overloading?
#include
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
any one please tell me the purpose of operator overloading
What is class and example?
What are the important components of cohesion?
can inline function declare in private part of class?
What is polymorphism in oops with example?
What is methods in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are functions in oop?
write a C++ program for booking using constructor and destructor.
What is the diamond problem in inheritance?