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 is polymorphism used?
Can a varargs method be overloaded?
what are the different types of qualifier in java?
What is coupling in oops?
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
What is solid in oops?
is there any choice in opting subjects like 4 out of 7
Why interface is used?
Can you inherit a private class?
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?
What is abstract class in oops?
What is inheritance in oop?
What does no cap mean?
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.
write knight tour problem which is present in datastructure