Skip to content

1.6 Class diagram

The class diagram of the Circle class now looks like this:

Circle with three constructors, perimeter and area methods, static Definition and static member Circle with three constructors, perimeter and area methods, static Definition and static member

+ means public
Underlined means static
You can now also see that for a method, the signature is shown, i.e., the name and the type of the parameter(s).

This diagram is design 1: the centre is two numbers on Circle. For a comparison with later designs (a Point as centre), see Three ways to give a Circle a centre.