Sunteți pe pagina 1din 1

COMPOSITION

Composition is a special type of aggregation that denotes a strong ownership between class a
class b.
DIAGRAM(Has Two boes with class names inside them and the lower bo points to the !pper
bo with a trailing diamond bloc"(#olid colo!r filled$$
Meaning% The whole of class A is a part of class &.
AGGREGATION
If the diamond bloc" is not hollow it is called as aggregation.
The 'hole class plays a more important role than the part class( b!t the two classes are not
dependent on each other.
)ote% The diamond end poitns towards the whole class.
*g% A car is aggregate of each of the class li"e engine( tyres.
GENERALISATION
It is way of inhertitance with an +is a+ relationship.
It is a realtionship between two classes where one class is a specialised class between the two
classes.
(#!b classes are always the specialised classes and the base class is called generalised class$
#hown by an empty traingle arrow mar".
TITLE?
They are a special case of class diagrams and gi,e a snapshot of a system at a partic!lar
moment.
Representation of an ob-ect% (C.A##/)AM*%0&1*CT/)AM*$(In a bo$.

S-ar putea să vă placă și