Question: Overload the makeCircle method of Exercise 7.6 such that if the radius is not provided, a random radius in the range 10 to 20 will

Overload the makeCircle method of Exercise 7.6 such that if the radius is not provided, a random radius in the range 10 to 20 will be used.


Data From Exercise 7.6:

Write a method called makeCircle that returns a new Circle object based on the method's parameters: two integer values representing the (x, y) coordinates of the center of the circle, an integer that represents the circle's radius, and a Color object that defines the circle's fill color.

Step by Step Solution

3.47 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

public void makeCircle int centerX int cen... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Software Solutions Questions!