What are the advantages of inheritance?
Answer Posted / haneet kaur
1. Reuse of existing code and program functionality: the program does not have to write and re-write the same code for logically same problem.
2. Less labour intensive: the programmers do not have to rewrite the same long similar program just because the application to be developed has slightly different requirements.
3. Well organised. the object are well organised in a way that they follow some hierarchy.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How can you overcome the diamond problem in inheritance?
Write a program to sort the number with different sorts in one program ??
What are the two different types of polymorphism?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
#include
What is persistence in oop?
What is the difference between a constructor and a destructor?
What is an interface in oop?
Can we override main method?
What is encapsulation with real life example?
Write a program to reverse a string using recursive function?
What is a class oop?
What do you mean by abstraction?
What is the main purpose of inheritance law?