First page Back Continue Last page Overview Graphics
Event-Driven Programming (2)
Different events are typically grouped together according to the objects that generate them.
- Bell-sounding events
- Projectile object events
Event-handlers are specific to the event associated with the object within the scope of the association
- Students will 'runAndScream' in response to the bell ringing at school
- A bell sounds at home: door bell, alarm clock
...students are not going to 'runAndScream' at home
(not necessarily :)
Notes: