Home Segments Index Top Previous Next

114: Practice

Define a method for the Integer class that computes the volume of a sphere, given that the receiver is the radius. Use your method to compute the volume of Earth in cubic miles.