5.1. Classes

We base the abstractions on the conceptual entities in a domain. An online bookstore, for example, will process many shipments to send orders to customers.

We abstract these shipments into the class Shipment, as shown in Figure 5.1.

Figure 5.1. Instances and Classes

Definition: A class is an abstraction from a set of conceptual entities in a domain so that all the conceptual entities in the set have the same characteristics, and they all are subject to and behave according to the same rules and policies.

Put another way, a class abstracts common characteristics and common behavior.

5.1.1. Finding Classes

Start out by asking yourself, ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.