12.3 Identifying the Classes in a Requirements Document

[Note: This section can be taught after Chapter 3.]

Now we begin designing the ATM system. In this section, we identify the classes that are needed to build the system by analyzing the nouns and noun phrases that appear in the requirements document. We introduce UML class diagrams to model these classes. This is an important first step in defining the system’s structure.

Identifying the Classes in a System

We begin our OOD process by identifying the classes required to build the ATM system. We’ll eventually describe these classes using UML class diagrams and implement these classes in Java. First, we review the requirements document of Section 12.2 and identify key nouns and noun phrases ...

Get Java How to Program (early objects), 9/e 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.