Question: For java only Write a class TestCircle with a main method that: a) creates a Circle object with radius 5.0, b) calls getArea() and prints
For java only Write a class TestCircle with a main method that: a) creates a Circle object with radius 5.0, b) calls getArea() and prints the result, c) calls the setter method to change the radius to a random value greater than or equal to 0.0 and less than 10.0 d) calls the getter method and displays the new value of the radius, e) once again calls getArea() and prints the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
