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 the difference between encapsulation and polymorphism?
What is coupling in oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is polymorphism explain?
What is polymorphism and example?
What is constructor overloading in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is super in oop?
What is polymorphism and its types?
What is encapsulation in simple terms?
What is object and example?
Why multiple inheritance is not allowed?
What is basic concept of oop?
What is class and object with example?
What are the benefits of polymorphism?