Design by Contract: Obligations, Inheritance, and Verification
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Your progress is kept in this browser only.Sign up to save it
Summary
Design by contract (DbC) is an approach to software design that makes the expectations and obligations between software components explicit. This lesson introduces the contract metaphor and the three central elements used to specify a component's behavior.
In business, a contract defines what each party must do and what each party may expect in return. DbC applies the same idea to software components. A client calls on a supplier—for example, a method or service—and the contract specifies their mutual obligations and benefits.
All flashcards
Quiz questions
Based on the Wikipedia article Design by contract, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.