What are the advantages of inheritance?
Answer Posted / krish
fine all the above answers saying inheritance is mainly used to reusing the code so development time reduses.ok fine
to reuse the already created class we can use reference of that class directly. then why we go for the inheritance?.
i think by using object references complexity will increases.It creates confusion to users.
and by creating reference another object is created. so memory wastage here.
i don't know exactly .....If there r any answers please post.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
can inline function declare in private part of class?
What are oops functions?
What is the renewal class?
What is the main feature of oop?
What is persistence in oop?
What is polymorphism what are the different types of polymorphism?
What are the advantages of polymorphism?
What is an example of genetic polymorphism?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why is static class not inherited?
What is oops with example?
What is abstraction oop?
Is data hiding and abstraction same?
What is class in oop with example?
What is polymorphism and example?