Write class Circle - a two dimensional circle. Have set and get methods and a to
ID: 3632724 • Letter: W
Question
Write class Circle - a two dimensional
circle.
Have set and get methods and a toString( ) method.
Have an Area( ) method that calculates the
circle area.
Write class Sphere that extends class Circle.
Have a new Area( ) function that computes
the surface area of the sphere.
Have set and get methods and a toString( ) method.
Use an array of 10 Sphere objects.
Test your Sphere class in a loop that
sets the sphere radius from 1-10.
Use a separate loop that
prints out the sphere surface area
for each sphere in the array.