Answer the questions A–D about the following declaration of class Circle:
*A. Declare and create a variable of type Circle called innerCircle.
B. Write a statement using the setRadius method to change the value of
innerCircle’s data member, radius to 10.0.
*C. Write a statement using the getRadius method to output the value of
innerCircle’s data member, radius, preceded by the phrase "The
value of radius is ".
D. Write a statement using the computeCircumference method to output
the value of innerCircle’s circumference, preceded by the phrase
"The value of the circumference is ".
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here