Difference between revisions of "Inheritance Diagrams"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "==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...")
 
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 Aggregation is shown using empty diamond end instead of arrow
 +
*Association Aggregation is shown using filled diamond end instead of arrow
  
 
==Example==
 
==Example==
 +
[[File:OOP-inheritance-diagram.svg.png]]
 +
 +
==Association Aggregation / Composition Aggregation Example==
 +
[[File:Aggregation.jpg]]

Revision as of 15:20, 2 January 2017

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 Aggregation is shown using empty diamond end instead of arrow
  • Association Aggregation is shown using filled diamond end instead of arrow

Example

OOP-inheritance-diagram.svg.png

Association Aggregation / Composition Aggregation Example

File:Aggregation.jpg