This preview shows page 1. Sign up to view the full content.
Unformatted text preview: method is now said to be an event handling method. 3) When three event handling methods are exactly the same, we could use parameters to write just one and send in the information needed to perform the action. 4) In an event-driven program, the response to an event may involve multiple actions. Writing an event handling method to carry out the response can become messy. One way to deal with a complex response is to use stepwise refinement to break down the event handling method into smaller pieces. It helps manage multi-action response to an event. 5) Step-wise function helps the readability of the program because you could test a small piece of your program then write and test the next small piece, and so forth, until the entire program is completed....
View Full Document
- Spring '08
- Computer Programming