Language -Programming By Contract
Contracts consist of pre- and postconditions
Raise exceptions when violated
instance method reserveCar is public result type Boolean param fromDate type Date doc "The date the customer will collect the car."
fromDate >= System.Calendar.today and
doc "Reserves this car. Returns true if" "the car could be reserved, false otherwise."