This preview shows page 1. Sign up to view the full content.
Unformatted text preview: - e:MouseEvent- e: is an instance variable - MouseEvent is the type of event to listen for (MouseEvent is a class) Why was the Current Car defined in CarLot?-CurrentCar is a variable - it allows the program to use several cars- and choose one at a time to move-CarLot is the document class - the document class is the class where everything on the stage happens - so thats the proper location for a specific reference to what is on the stage Why is the event listener that selects a car defined in the Car class?- its the class that knows the most about the specific car - so it knows what to do with it specifically...
View Full Document
- Winter '08