Java OOP GUIDE / WORK CIRCLE CLASS 3 Topics
TASK –
PART 1 – STARTING CODE Copy
and paste the following Circle class into your IDE to use it in this problem.
TASK –
PART 2 – ADDING TO THE CIRCLE CLASS a) Add a method
that calculates and returns the circumference of the circle. You must first determine a good method
name, then the method header and then implement it. b) Add another method
that calculates and returns the diameter of the circle. c)
Add a toString() method
that returns a string of the form: TASK –
PART 3 – TESTING THE CIRCLE CLASS
|
|
|