2.6 Class diagram
The class diagram of the Circle class now looks like this:
+ means public
- means private
<<constant>> means constant field (PascalCase per C# conventions)
Underlined means static
Note: This diagram includes getters and setters (properties). From chapter 3 onward, we will omit them in class diagrams for brevity.
The centre is still two numbers on Circle (design 1). Chapter 3 replaces that with a Point. See Three ways to give a Circle a centre.