Inheritance and Aggregation

What is the difference between inheritance and aggregation? When would you use one over the other

Questions by naggeek

Showing Answers 1 - 9 of 9 Answers

In Inheritance we have to extend the class where as in Aggregation no need to extend.Directly we can make use of other class in current class by creating object of other class(if required).

  Was this answer useful?  Yes

mvrao.bsc

  • Jun 12th, 2008
 

In Inheritance we have to extend the class where as in Aggregation no need to extend.Directly we can make use of other class in current class by creating object of other class(if required).
 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions