Circle and Point constructors
The Geometry practica start with numeric centerX and centerY on Circle (chapters 1–2) and later store a Point as the centre (chapter 3). The teaching note compares those designs: constructor parameters versus stored attributes, and UML association versus composition.
It belongs with:
- 1.4 Constructors and 1.6 Class diagram - design 1 (centre as numbers)
- 2.4 Constructor chaining and 2.6 Class diagram - still design 1
- 3.2 Classes as attribute, 3.3 Class diagram and 3.4 Relationship between Circle and Point - design 2 (centre as a
Point)