package chapter8;

/**
 * Title:        Chapter 8, "Class Inheritance and Interfaces"
 * Description:  Examples for Chapter 8
 * Copyright:    Copyright (c) 2000
 * Company:      Armstrong Atlantic State University
 * @author Y. Daniel Liang
 * @version 1.0
 */

// TestOverrideMethods.java: Test the Cylinder class that overrides
// its superclass's methods
import chapter8.example8_2.Cylinder;

public class TestOverrideMethods
{
  public static void main(String[] args)
  {
    Cylinder myCylinder = new Cylinder(5.0, 2.0);
    System.out.println("The length is " + myCylinder.getLength());
    System.out.println("The radius is " + myCylinder.getRadius());
    System.out.println("The surface area of the cylinder is "+
      myCylinder.findArea());
    System.out.println("The volume of the cylinder is "+
      myCylinder.findVolume());
  }
}