What are the advantages of inheritance?
Answer Posted / sudhir kumar
The main advantage of the inheritance is that we can acheive
encapsulation because there is early binding in inheritance.
Means our derived class object is already fix to all
appropriate classes functions. And encapsulation is so
because any body do not know that what are the names of base
classes and their information.
And as every one knows Reuseability....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is polymorphism achieved?
What is byval and byref? What are differences between them?
What is destructor in oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is variable example?
What is the advantage of oop over procedural language?
What is polymorphism give a real life example?
What is multilevel inheritance explain with example?
Can we create object of abstract class?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is constructor in oop?
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
How do you achieve polymorphism?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Which is better struts or spring?