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
why reinterpret cast is considered dangerous?
explain sub-type and sub class? atleast u have differ it into 4 points?
What are constructors in oop?
What are properties in oop?
What is polymorphism and its types?
Can you explain polymorphism?
Why multiple inheritance is not allowed?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is oops in simple words?
What is meant by oops concept?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is property in oops?
Can abstract class have normal methods?
Write a program to reverse a string using recursive function?
What do you mean by variable?