If we need a circle to calculate a circumference, then we need a radius, or for analytical geometry — a radius and center, and for displaying a circle on the screen — preferably a color as well. What we're getting at is that we need to create a Circle class and create three different constructors for it.
Walking in circles
- 2
Locked
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
AndreiJ Java Developer
7 July 2019, 18:01
Maybe making the color variable a String not an int would be more precise :)
+4
Brad Reed
23 June 2020, 20:06
right?! I was just about to make. comment about that.
+1
Laura
12 September 2020, 09:25
But can't u use codes as a color (like: hex codes in html)? Then, it would make sense to make it like that. However, first I also was a confused.
0