Overload the makeCircle method of Exercise 7.6 such that if the radius is not provided, a random

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Software Solutions

ISBN: 9789353063610

9th Edition

Authors: John Lewis, William Loftus

Question Posted: