Answer the questions A-D about the following declaration of class Circle: *A. Declare and create a variable

Question:

Answer the questions A-D about the following declaration of class Circle:

image text in transcribed

*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 compute Circumference method to output the value of inner Circle's circumference, preceded by the phrase "The value of the circumference is ".

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: