SoftwarePractice.org: Home | Courseware | Wiki | Archive

Menu:

Module 7: Contracts

In this module we will look at Bertrand Meyer's Design-by-Contract approach to specifying the interface of operations/methods, and compare it with defensive programming. We will explore how to specify contracts on class operations through the use of preconditions and preconditions.

Lecture material

Tutorial

The exercises from the Self-Study module can be worked through in class.

Self-study modules
This module shows you how to tighten up your object design with the use of design-by contract.
  • Contracts :: pdf

Resources