Part I: Classes

Chapter 1: Total Programming
Major Topics
The life cycle of a class ranging from specification over represen-tation and implementatation to verification.
The paradigm of total program-ming to deal with exceptional cases in postconditions.
Source code: Chapter1.jar
Definition of the class of bank accounts, complemented with some tests and experiments.
Errata: ErrataChapter1.pdf
Part_1_files/Chapter1.jar.zipPart_1_files/ErrataChapter1.pdffile://localhost/Chapter1-18.jarshapeimage_2_link_0shapeimage_2_link_1
Chapter 4: Value Classes
Major Topics
Definiation of classes describing immutable and perpetual values.
Definition of enumerations.
Source code: Chapter4.jar
Definition of an enumeration of currencies, a value class of money amounts and a class of bank accounts using money amounts instead of integer values.
Errata: ErrataChapter4.pdfPart_1_files/Chapter4.jarPart_1_files/ErrataChapter4.pdffile://localhost/Chapter1-19.jarshapeimage_3_link_0shapeimage_3_link_1
Chapter 3: Defensive Programming
Major Topics
The paradigm of defensive pro-gramming to deal with exceptional cases by means of exceptions.
The definition of dependent pro-perties.
Source code: Chapter3.jar
Definition of the class of bank accounts, complemented with some tests and experiments.
Errata: ErrataChapter3.pdf
Part_1_files/Chapter3.jar.zipPart_1_files/ErrataChapter3.pdffile://localhost/Chapter1-20.jarshapeimage_4_link_0shapeimage_4_link_1
Chapter 2: Nominal Programming
Major Topics
The paradigm of nominal program-ming to deal with exceptional cases in preconditions.
The definition of multi-valued properties.
The paradigm of structured programming to develop iterative algorithms.
Source code: Chapter2.jar
Definition of the class of bank accounts, complemented with some tests and experiments.
Errata: ErrataChapter2.pdfPart_1_files/Chapter2.jar.zipPart_1_files/ErrataChapter2.pdffile://localhost/Chapter2.jar-5.zipshapeimage_5_link_0shapeimage_5_link_1