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 overloading in oops?

596


What is the difference between a constructor and a destructor?

609


What is the main feature of oop?

618


What type of loop is a for loop?

682


what is the sylabus for priliminaries?

1681






What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2098


What are the three main types of variables?

600


What is the renewal class?

2161


What is stream in oop?

835


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2144


what type of question are asked in thoughtworks pair programming round ?

1756


How do you define a class in oop?

625


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2004


Whats is abstraction in oops?

589


Where You Can Use Interface in your Project

1423