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 encapsulation used?
Why polymorphism is used in oops?
What is encapsulation in oop?
What is the significance of classes in oop?
What is the advantage of oop over procedural language?
What does oop mean in snapchat?
What is overloading in oop?
What are functions in oop?
Please send ford technologies placement paper 2 my mail id
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< 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’. i am getting an of the type can not convert int to int *.
to overcome this problem what we should do? why reinterpret cast is considered dangerous? What is object in oops? Why is abstraction used?