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 overloading in oops?
What is the difference between a constructor and a destructor?
What is the main feature of oop?
What type of loop is a for loop?
what is the sylabus for priliminaries?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What are the three main types of variables?
What is the renewal class?
What is stream in oop?
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
what type of question are asked in thoughtworks pair programming round ?
How do you define a class 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.
Whats is abstraction in oops?
Where You Can Use Interface in your Project