Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Design By Contract

Bertrand Meyer formalized a programming methodology called Design by Contract.

Tutorial Details:

Bertrand Meyer formalized a programming methodology called Design by Contract, which has become popular in some groups. In addition to specifying programming code to carry out the operations of a function (method), the programmer also specifies:

Preconditions - assumptions the function makes. These are usually expressed as statements that must be true about the parameters. This is the part of the "contract" that the caller must agree to.
Postconditions - conditions that are true when it finishes. These conditions define the responsibilities of the function, and are the part of the contract that the function agrees to.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/principles_and_practices/20design_by_contract.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Design By Contract

View Tutorial:
Design By Contract

Related Tutorials:

Designing with exceptions - JavaWorld - July 1998
Designing with exceptions - JavaWorld - July 1998
 
Smarter Java development - JavaWorld August 1999
Smarter Java development - JavaWorld August 1999
 
How to avoid traps and correctly override methods from java.lang.Object - JavaWorld January 1999
How to avoid traps and correctly override methods from java.lang.Object - JavaWorld January 1999
 
Cleaning up after Jini services - JavaWorld March 2000
Cleaning up after Jini services - JavaWorld March 2000
 
Test infect your Enterprise JavaBeans - JavaWorld May 2000
Test infect your Enterprise JavaBeans - JavaWorld May 2000
 
Read all about EJB 2.0 - JavaWorld June 2000
Read all about EJB 2.0 - JavaWorld June 2000
 
iContract: Design by Contract in Java - JavaWorld February 2001
iContract: Design by Contract in Java - JavaWorld February 2001
 
Make bad code good - JavaWorld March 2001
Make bad code good - JavaWorld March 2001
 
J2SE 1.4 premieres Java's assertion capabilities, Part 1
J2SE 1.4 premieres Java's assertion capabilities, Part 1
 
To EJB, or not to EJB?
To EJB, or not to EJB?
 
J2SE 1.4 premieres Java's assertion capabilities, Part 2
J2SE 1.4 premieres Java's assertion capabilities, Part 2
 
I want my AOP!, Part 1
I want my AOP!, Part 1
 
Implement Design by Contract for Java using dynamic proxies
Implement Design by Contract for Java using dynamic proxies
 
Step into the J2EE architecture and process
Step into the J2EE architecture and process
 
Design patterns make for better J2EE apps
Design patterns make for better J2EE apps
 
XML glossary
XML glossary
 
replacing implementation inheritance by contract inheritance
replacing implementation inheritance by contract inheritance
 
classworlds
classworlds classworlds is a framework for container developers who require complex manipulation of Java\'s ClassLoaders. Java\'s native ClassLoader mechanims and classes can cause much headache and confusion for certain types of application developers.
 
J2EE Connector Architecture
J2EE Connector Architecture Introduction If you\'ve ever had to integrate legacy data, data sources, or functionality with a new application, you\'ve no doubt faced a number of challenges: for instance, figuring out how to connect to legacy systems, m
 
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.