Posts Tagged ‘70208’
Design and implement a class called Sphere that contains instance data that represents the sphere’s diameter.
LANGUAGE: Java CHALLENGE: Design and implement a class called Sphere that contains instance data that represents the sphere’s diameter. Define the Sphere constructor to accept and initialize the diameter, and include getter and setter methods for the diameter. Include methods calcVolume and calcSurfaceArea that calculate and return the volume and surface area of the sphere.…
Read More