1  public class CarDemo
  2  {
  3     public static void print(Car c)
  4     {
  5        System.out.println(c.getDescription());
  6        System.out.println("Tires: " + c.getNumberOfTires());
  7     }
  8  
  9     public static void main(String[] args)
 10     {
 11        Car aPlainCar = new Car(); 
 12        print(aPlainCar); 
 13  
 14        Car aLimo = new Car(); 
 15        aLimo.setLicensePlateNumber("W00H00"); 
 16        aLimo.setNumberOfTires(8);
 17        print(aLimo);
 18     }
 19  }