//
// This class creates instances of the JimCar object.
//
public class DriveTheCar {
public static void main(String args[]){
JimsCar theRedOne = new JimsCar(); // Create a JimsCar.
theRedOne.setColor("red"); // Make it's color red.
JimsCar theGreenOne = new JimsCar("green"); // Create another JimsCar
// and set it's color.
theGreenOne.goForward(); // Tell the cars to move.
theRedOne.goForward();
}
}