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 byval and byref? What are differences between them?
What is abstraction example?
Why do pointers exist?
What is solid in oops?
What is destructor in oop?
Is abstract thinking intelligence?
What is object and example?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How can you overcome the diamond problem in inheritance?
What are properties in oop?
How do you use inheritance in unity?
What is constructor in oop?
What is the main feature of 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's the basic's in dot net