Skip to main content
Article thumbnail
Location of Repository

Example Java Class

By N. Cataño, M. Huisman and Return &amp

Abstract

JML and Design by Contract • A “contract ” between a program (Java class) and its clients. • A precondition specifies the client’s (user of the program) obligation (i.e., guarantees that must be met before calling a method). • A postcondition specifies the implementor’s obligation (i.e., guarantees properties that hold after execution). • Contracts are “executable”, i.e., can be checked by tools. 2 public class Person { private String name; private int weight

Year: 2008
OAI identifier: oai:CiteSeerX.psu:10.1.1.134.2066
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://citeseerx.ist.psu.edu/v... (external link)
  • http://www.site.uottawa.ca/~af... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.