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


Please Help Members By Posting Answers For Below Questions

What is class and object in oops?

611


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

2763


to find out the minimum of two integer number of two different classes using friend function

1643


What is coupling in oops?

598


Why do we use class in oops?

555






what is the 3 types of system development life cycle

2435


What is ambiguity in inheritance?

625


What is overriding in oops?

606


What is encapsulation in oop?

609


What does no cap mean?

592


What is the point of oop?

656


What is encapsulation process?

582


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

1652


What is class and example?

569


What is stream in oop?

841