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


Please Help Members By Posting Answers For Below Questions

Why is encapsulation used?

577


Why polymorphism is used in oops?

578


What is encapsulation in oop?

601


What is the significance of classes in oop?

587


What is the advantage of oop over procedural language?

623






What does oop mean in snapchat?

680


What is overloading in oop?

572


What are functions in oop?

582


Please send ford technologies placement paper 2 my mail id

1652


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1413


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1775


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833


why reinterpret cast is considered dangerous?

1896


What is object in oops?

610


Why is abstraction used?

601