Differentiate between Aggregation and containment?

Answer Posted / kundan lal

There is NO difference between aggregation and containment.
There is a difference, however, between aggregation and
composition.

Is This Answer Correct ?    0 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is garbage collection(gc)?

742


What is meant by inheritance? what are the advantages of inheritance?

718


What are different types of arguments?

830


Define Destructor?

731


If a class inherits an interface, what are the 2 options available for that class?

715


Explain about parametric polymorphism?

779


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

757


If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

723


What is composition? Explain the purpose of composition.

744


What is function override?

785


Explain about inheritance hierarchies?

723


What is bootstrap, extension and system class loader?

688


Name the different creational patterns in object oriented design?

749


Can I implement polymorphism using abstract class?

746


What is the benefit of using inheritance?

788