Main BLOGGER
Google
WWW THIS BLOG
Friday, September 23, 2005
 
UML learning

Q1. Aggregation and Composition

A1. Aggregation means a container for a collection of objects. A metaphor here is a Java Hashtable. It contains the references to one or many objects.

      Composition means an element or ingredient of an object. For example, an object A could have an object B as its member data in the form of value (Not a reference)

The value object is a composition, the reference object is a aggregation.

 

 




<< Home

Powered by Blogger

Google
WWW THIS BLOG