SLIDE 1
Interfaces as Contracts
- A client and a server are bound by a contract
- The server promises to do its job
- Defined by the postconditions
- As long as the client uses the server correctly
- Defined by the pre-conditions
Bertrand Meyer Design by Contract