/**
 * Truck class works in tandem with Vehicle and TestTruck to demonstrate
 * the use of "super()" and constructors in inheritance.
 * JDEP 183H Fall 2008
 * Adapted From Wu's textbook.
 *
 * @author Leen-Kiat Soh
 * @version 1.0
 */


class Truck extends Vehicle  {

   private int cargoWeight;


   public Truck()  {

      System.out.println("Inside the constructor of Truck");

   }

   public Truck(String name)  {
      super(name);
      System.out.println("Inside the constructor of Truck with " + name);
   }
    
   public void mystery()  {

      super();

   }


}


