Inheritance Diagrams

From TRCCompSci - AQA Computer Science
Revision as of 20:07, 6 June 2018 by Admin (talk | contribs) (Diagram Rules)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

OOP-inheritance-diagram.svg.png

Aggregation / Composition Example

Aggregation.GIF

Association Aggregation is now just Aggregation, and Composition Aggregation is now just Composition.