Difference between revisions of "Inheritance Diagrams"
(→Association Aggregation / Composition Aggregation Example) |
(→Diagram Rules) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
*try to have the parent class above any subclassess | *try to have the parent class above any subclassess | ||
*arrows all point towards the parent class from each child | *arrows all point towards the parent class from each child | ||
− | *Composition | + | *Composition is shown using empty diamond end instead of arrow |
− | * | + | *Aggregation is shown using filled diamond end instead of arrow |
==Example== | ==Example== | ||
[[File:OOP-inheritance-diagram.svg.png]] | [[File:OOP-inheritance-diagram.svg.png]] | ||
− | == | + | ==Aggregation / Composition Example== |
[[File:Aggregation.GIF]] | [[File:Aggregation.GIF]] | ||
+ | |||
+ | Association Aggregation is now just Aggregation, and Composition Aggregation is now just Composition. |
Latest revision as of 20:07, 6 June 2018
Diagram Rules
- each class should be represented by a labeled shape
- try to have the parent class above any subclassess
- arrows all point towards the parent class from each child
- Composition is shown using empty diamond end instead of arrow
- Aggregation is shown using filled diamond end instead of arrow
Example
Aggregation / Composition Example
Association Aggregation is now just Aggregation, and Composition Aggregation is now just Composition.