Lecture 6
3
Testing a client class
•Suppose you’ve written LinearEquation, and it compiles correctly.
•How can you know it’s right?
•Need a test driver: main somewhere to test all the public methods in the client
•Temperatures class tests LinearEquation
•(Terminal has its own main for testing              – try it)