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 is the benefit of oop?
Why is encapsulation used?
Which is not an object oriented programming language?
What is stream in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is polymorphism in oop example?
Can you explain polymorphism?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What are benefits of oop?
What is meant by multiple inheritance?
write knight tour problem which is present in datastructure
What is inheritance in oop?
What are main features of oop?
Where You Can Use Interface in your Project
Why is there no multiple inheritance?