July 2001
Intermediate to advanced
656 pages
15h 51m
English
This section presents a sample domain object layer program solution in Java for this iteration. The code generation is largely derived from the design class diagrams and interaction diagrams defined in the design work, based on the principles of mapping designs to code as previously explored.
|
The main point of this listing is to show that there is a translation from design artifacts to a foundation of code. This code defines a simple case; it is not meant to illustrate a robust, fully developed Java program with synchronization, exception handling, and so on. |
public class Payment { private Money amount; public Payment( Money cashTendered ){ amount = cashTendered; } public Money getAmount() ...
Read now
Unlock full access