Sedgewick pages 166-171
- defines data structure
- declares functions to be used to manipulate data structure
- actual code for the functions declared in interface
- you may have more than one implementation for the same interface
- a program that uses functions declared in interface (without 'knowledge' of how they are implemented)
- multiple, separate clients can use the same interface
Your first client program should be a 'debug' client. A debug client tests each of the functions provided in the interface. As you write the code for ("implement") each function in the interface, test it with the debug client.
Question: What are some benefits of modular programming?