Menu

#13 UML Aggregation & Composite

open
nobody
None
5
2012-09-27
2004-05-10
Anonymous
No

I think that the association of Aggregation and
Composition in a diagram should add an attribute with the
name and type of included class in the composite class.
ie: The class Computer is a container of a CPU, a Video
Card, one or more Hard Drives. Therefore Computer have
following variables:

+videoCard : VideoCard
+cpu : CPU
+hardDrive : HardDrive

In case that exist more that one hard drive the hardDrive
attribute may be a collection.

Thank for all, the product is great!

JAV_el_inmortal@hotmail.com

Discussion


Log in to post a comment.