Question: Overload the makeCircle method of Exercise 7.6 such that if both the color and the radius of the circle are not provided, the color will
Overload the makeCircle method of Exercise 7.6 such that if both the color and the radius of the circle are not provided, the color will default to green and the radius will default to 40.
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.49 Rating (156 Votes )
There are 3 Steps involved in it
public void makeCircle int ... View full answer
Get step-by-step solutions from verified subject matter experts
