Monday, January 12, 2009

Events and Event-Handling


Today we are looking at the example of a firetruck saving people from a burning house.
This is to understand the concepts of event-handling with methods that have parameters.
In the lab we will be working on exercise 5, page 160 and, as an alternative, find a solution using only one event-handling method (with a parameter for more flexibility).


Homework


  • Read section 5.2: Parameters and Event-Handling Methods, pages 146-155.

  • Answer the review questions section 5.2.

No comments: