/******************************************************* * CSC A06 Tutorial III * * Prepared By Eric Beiers * * * * Class Name: CarProgram.java * * * * Purpose: Calls Car.java, to initialize * * (instantiate), and use its method. * * * *******************************************************/ 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(); // turn on YourCar YourCar.UseKey(); YourCar.PrintDescription(); } }