Java OOP GUIDE / WORK CIRCLE CLASS 2 Topics
TASK –
PART 1 – SETTING UP THE POINT CLASS Copy
and paste the following Point class into your IDE to use it in this problem.
TASK –
PART 2 – CIRCLE CLASS
The only data
we need to store is the circle's radius.
Constructor
#1: A constructor that gets a value for radius and creates the circle. Constructor
#3: A constructor that gets two Point objects. It then calculates the distance between the
two points and creates a circle with that information. TASK –
PART 3 – TESTING THE CIRCLE CLASS
|
|
|