Skip to content

3.1 Summary

  1. Classes can be used as attributes in another class.
  2. The relationship between two classes can be classified in various ways.

See also Three ways to give a Circle a centre (constructor parameters versus stored attributes, and UML association versus composition).