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
Can bst contain duplicates?
write string class as your own class in java without using any built-in function
What is advantage of inheritance?
What are the benefits of interface?
What is debug class?what is trace class? What differences are between them? With examples.
What is difference between oop and pop?
What is overloading in oops?
Can we define a class within the interface?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Why is oop useful?
Explain the advantages of inheritance.
What is an advantage of polymorphism?
What does it mean when someone says I oop?
What is the main purpose of inheritance law?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?