Page 1 of 1

Write a Java class named circle which contains: Instance variables: Radius of type double. Color of type String. Overloa

Posted: Fri May 20, 2022 5:49 pm
by answerhappygod
Write a Java class named circle which
contains:
Instance variables:
Radius of type double.
Color of type String.
Overloaded constructors:
Default constructor “no argument”.
Constrictor which takes two arguments (a double argument for
radius, a string argument for color)
a public method getArea() which return the area of the circle
based on the radius.
NOTE: the user will be enter the color and the radius So
use scanner .