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
What is encapsulation in oops?
How do you define social class?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is static modifier?
What are the three parts of a simple empty class?
What makes a language oop?
What is overriding vs overloading?
What is property in oops?
What is abstraction and encapsulation?
What is solid in oops?
What is the renewal class?
Why do we use polymorphism in oops?
How many human genes are polymorphic?
Why is oop useful?
Why oops is important?