What are the advantages of inheritance?
Answer Posted / hamid
Features or Advantages of Inheritance:
---Reusability:
Inheritance helps the code to be reused in many
situations. The base class is defined and once it is
compiled, it need not be reworked. Using the concept of
inheritance, the programmer can create as many derived
classes from the base class as needed while adding specific
features to each derived class as needed.
---Saves Time and Effort:
The above concept of reusability achieved by inheritance
saves the programmer time and effort. Since the main code
written can be reused in various situations as needed.
---Increases Program Structure which results in greater
reliability.
www.hamidraza.page.tl
| Is This Answer Correct ? | 121 Yes | 12 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
What is polymorphism in oops with example?
Why do we use polymorphism?
Why is oop useful?
Why polymorphism is used in oops?
write a C++ program for booking using constructor and destructor.
What is a class in oop?
What is encapsulation in oops?
write a program that takes input in digits and display the result in words from 1 to 1000
c++ program to swap the objects of two different classes
What is oops concept with example?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Can we create object of interface?
What are constructors in oop?
What are benefits of oop?