July 2001
Intermediate to advanced
656 pages
15h 51m
English
It is useful to identify abstract classes in the domain model because they constrain what classes it is possible to have concrete instances of, thus clarifying the rules of the problem domain.
|
If every member of a class C must also be a member of a subclass, then class C is called an abstract conceptual class. |
For example, assume that every Payment instance must more specifically be an instance of the subclass CreditPayment, CashPayment, or CheckPayment. This is illustrated in the Venn diagram of Figure 26.11 (b). Since every Payment member is also a member of a subclass, Payment is an abstract conceptual class by definition.
By contrast, if there can be Payment instances ...
Read now
Unlock full access