What are the advantages of inheritance?
Answer Posted / awais zahur
inheritance has two main advantages:
1.extendability
we can extend the already made classes by adding some new
features.
2.maintainability
it is easy to debug a program when divided in parts.
inheritance provides an opportunity to capture the problem
| Is This Answer Correct ? | 80 Yes | 14 No |
Post New Answer View All Answers
What is the problem with multiple inheritance?
What is the real time example of inheritance?
Which type does string inherit from?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is class and object in oops?
What is object in oops?
What is cohesion in oop?
What is difference between inheritance and polymorphism?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the diamond problem in inheritance?
#include
Templates mean
Can we override main method?
Is abstract thinking intelligence?