Home Segments Index Top Previous Next

346: Practice

Define MathematicsClass to be a class. Define Pi to be a class variable. Define pi and pi: to be the getter and setter for Pi. Use the setter to set the value equal to 1 arcTan * 4. Use the getter to redefine the volume method originally requested in Segment 114.