Question
1.This is using Java. Write a method called makeCircle that returns a new Circle object based on the method's parameters: two integer values representing the
1.This is using Java. 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 representing the circles radius, and a Color object that defines the circle's fill color.
2.overload the makeCircle method such that if the Color parameter is not provided, the circle's color will default to red.
3.overload the makeCircle method such that if the radius is not provided, a random radius in the range in the range 10 to 20.
4.overload the makeCircle method such that if both the color and radius are not provided, the color wll default to green and the radius will default to 40.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started