This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, Does anybody feel familiar with the subject term? Relating it to an exception example: a square-root methd could require that it must be called only with a non-negtive argument. If called with a negative argument, the method would react by throwing an exception, since the contract between it and its caller has been broken. So how to express this contract in the code? What the code should be to demonstrate the above example? Thanks for any leads! Luk