예제 #1
0
def boxDemonstration():
    myBox = Box(2.5, 5, 7.5)

    print("The box dimensions are h: {}, w: {}, l: {}".format(
        myBox.getHeight(), myBox.getWidth(), myBox.getLength()))
    print("The volume of the box is {} inches".format(myBox.calcVolume()))
    print("The surface area of the box is {} inches.".format(
        myBox.calcSurfaceArea()))