Design by Contract, by Example

by Richard Mitchell and Jim McKim

0 ratings • 0 reviews • 0 shelved
Book cover for Design by Contract, by Example

Bookhype may earn a small commission from qualifying purchases. Full disclosure.

Design by Contract is a systematic approach to specifying and implementing object-oriented software elements based on precisely defined obligations between them. This is the first practical, example-centered guide to using Design by Contract. The authors introduce powerful design principles for writing good contracts and supporting guidelines -- and demonstrate those principles with real-world Java and Eiffel code examples. They review the fundamentals of Design by Contract -- preconditions, postconditions and invariants -- and presenting a real-world example. Next, drawing on their unparalleled experience with Design by Contract, they present six powerful design principles -- each with a clear statement of goals, rationale, examples in both Java and Eiffel, and supporting notes. Developers will learn how to strengthen their components' internal support for contracts; how to use contracts to specify subclasses whose objects can safely be substituted for superclass objects; how to extend contract to specify and check properties that remain unchanged; and how to use contracts in analysis-level models. The book concludes by summarizing key principles and presenting a realistic cost/benefit analysis of their use.

  • ISBN10 0201634600
  • ISBN13 9780201634600
  • Publish Date 29 October 2001
  • Publish Status Out of Print
  • Out of Print 14 July 2015
  • Publish Country US
  • Publisher Pearson Education Limited
  • Imprint Addison Wesley
  • Format Paperback
  • Pages 256
  • Language English