6.6 Class diagram
The complete class diagram now looks like this:
- The
Surfaceclass contains 0 or more objects of theShapeclass. - An object of the
Shapeclass can be placed in 0 or moreSurfaceobjects. - A surface knows about the shapes it contains.
- A shape does not know in which surfaces it is placed.
+ means public
- means private
# means protected
<<constant>> means constant field (PascalCase per C# conventions)
Underlined means static
Italic means abstract
White triangle means derived class
Open arrow means unidirectional