What are the advantages of inheritance?
Answer Posted / k.kirankumar
1.reusability(that is we can use same code in different
versions(class etc..)
2.avoids tyoing of code again and again(code compatability)
3.cost(in sense their no need compile same code for many
number times regardless of its usage)
4.maintance is very because the in inheritance formart is
in the modules so that it is easy to find the errors in
the small module instead of finding errors in many no.of
lines at time
5.the bove feature will reduce testing effort.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Why do we use class?
What is ambiguity in inheritance?
officer say me - i am offered to a smoking , then what can you say
What is polymorphism what is it for and how is it used?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is inheritance in simple words?
What is encapsulation with example?
Get me an image implementation program.
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is protected in oop?
Why do pointers exist?
What is encapsulation in oops?
what type of questions
Which method cannot be overridden?
Why do we use inheritance?