Chapter 4. Class Diagrams: The Essentials

Chapter 4. Class Diagrams: The Essentials

The class diagram technique has become truly central within object-oriented methods . Virtually every method has included some variation on this technique.

The class diagram is not only widely used, but also subject to the greatest range of modeling concepts. Although the basic elements are needed by everyone, the advanced concepts are used less often. Therefore, I've broken my discussion of class diagrams into two parts : the essentials (this chapter) and the advanced (see Chapter 6).

A class diagram describes the types of objects in the system and the various kinds of static relationships that exist among them. There are two principal kinds of static relationships:

  • associations (for example, a customer may rent a number of videos )

  • subtypes (a nurse is a kind of person)

Class diagrams also show the attributes and operations of a class and the constraints that apply to the way objects are connected.

Figure 4-1 shows a typical class diagram.

Figure 4-1. Class Diagram
graphics/04fig01.gif


UML Distilled[c] A Brief Guide to the Standard Object Modeling Language
The Unified Modeling Language User Guide (Addison-Wesley Object Technology Series)
ISBN: 0201571684
EAN: 2147483647
Year: 2005
Pages: 119

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net