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
What is class and object in oops?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
to find out the minimum of two integer number of two different classes using friend function
What is coupling in oops?
Why do we use class in oops?
what is the 3 types of system development life cycle
What is ambiguity in inheritance?
What is overriding in oops?
What is encapsulation in oop?
What does no cap mean?
What is the point of oop?
What is encapsulation process?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is class and example?
What is stream in oop?