What are the advantages of inheritance?
Answer Posted / axuu
Inheritance offers the following advantages --
Developement model closer to real life object model with
hierarchical relationships
Reusability -- facility to use public methods of base class
without rewriting the same
Extensibility -- extending the base class logic as per
business logic of the derived class
Data hiding -- base class can decide to keep some data
private so that it cannot be altered by the derived class
| Is This Answer Correct ? | 32 Yes | 8 No |
Post New Answer View All Answers
what's the basic's in dot net
Why do we need oop?
Explain the concepts involved in Object Oriented programming.
What is the example of polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is for loop and its syntax?
any one please tell me the purpose of operator overloading
What is property in oops?
What is cohesion in oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What do you mean by Encapsulation?
Why multiple inheritance is not possible?
How is class defined?
What does enum stand for?
What is difference between multiple inheritance and multilevel inheritance?