/******************************************************* * CSC A06 Tutorial III * * Prepared By Eric Beiers * * * * Class Name: CarProgram.java (version 2) * * * * Purpose: Calls Car.java, to initialize * * and use its methods. * * * *******************************************************/ public class CarProgram { public static void main (String[] args) { // create a default car Car DefaultCar = new Car(); // create a second car, that is different Car YourCar = new Car(4, 4, "Pink And Green", "Gremlin", true, false); // print info about the cars // DefaultCar.PrintDescription(); YourCar.PrintDescription(); System.out.println(""); // turn on YourCar YourCar.UseKey(); YourCar.changeColour("interior", "black"); YourCar.changeModel("Gremlin Turbo"); System.out.println("This car now has a " + YourCar.whatColour("interior") + " interior\n"); YourCar.PrintDescription(); } }