The following code was adapted from our book "Visual Cafe for Java Explorer, Database Development Edition" Brogden, Louie, Tittel, Coriolis, 1998. The only real change from the Java version is the use of C#'s support for "properties." The Model class implements the algorithms of a mortgage calculator. The fact that the Java code was completely separate from the Java GUI greatly simplified the reuse of this 1997 code in this C# Windows Form application!
This group of students also demonstrates the use of two common programming idioms: the use of a public "IsValid" function to return the external state of the object and the use of pre and post conditions to validate the input and output of an algorithm.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment