CSE 2221 - Contracts
Contracts
25 October 2022
OSU CSE
1
Contract Details
? Contracts in the APIs for OSU CSE components include these important features:
? Parameter modes ? Two stipulations:
? Parameter names in requires and ensures clauses always stand for the object values, never the reference values, of the corresponding arguments to a method call
? Reference-type arguments are always non-null
25 October 2022
OSU CSE
2
Contract Details These are local decisions that apply to OSU CSE components' contracts; there are no industry
? Contracts in the APsItsanfdoarrdOs S(yUet)CthSatEgovern how components include thestoewimritepcoornttaranctts. features:
? Parameter modes
? Two stipulations:
? Parameter names in requires and ensures clauses always stand for the object values, never the reference values, of the corresponding arguments to a method call
? Reference-type arguments are always non-null
25 October 2022
OSU CSE
3
Parameter Modes
? There are four parameter modes, each of which indicates a possible way that a method might change the value of the corresponding argument
? Parameter modes help us in three ways:
? They concisely summarize which arguments might have their values modified by a call
? They make requires/ensures clauses shorter
? They allow us to perform "consistency checks" of contracts against certain simple errors
25 October 2022
OSU CSE
4
Parameter Modes
? There are four parameter modes, each of which indicates a possible way that a method might change the value of the corresponding argument
?MPodaersaamreelitseterdmfoor tdhee sforhmeallp us in three ways:
pa?raTmheetyercs,oinncilsuedilnygstuhmism, arize which arguments bumt aigchtutahllyavaepptlhy etoir tvhaeilrues modified by a call
cor?reTshpoenydimngakaerguremqeunitrsefso/reansures clauses shorter c?alTl,hinecyluadlilnogwthuesretocepiveerr.form "consistency checks" of contracts against certain simple errors
25 October 2022
OSU CSE
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- system programming reference ibm
- design martin fowler
- the spec programming system an overview
- system administration guide spiceworks
- cse 2221 contracts
- csc 1051 algorithms data structures ii
- esp8266 reset causes and common fatal exception causes en
- changing java s semantics for handling null pointer exceptions
- program errors and exception handling
- declaring and checking non null types in an object
Related searches
- michigan teacher contracts by district
- school contracts for teachers
- contracts essay questions and answers
- ohio teacher contracts online
- sample teacher contracts for employment
- baltimore city contracts awarded
- teacher contracts in texas
- teacher contracts school district
- union contracts online
- buy here pay here contracts pdf
- small business internet service with no annual contracts or cancellation fees |
- serb ohio contracts online