[ fromfile: introuml.xml id: introuml ]
UML, the Unified Modelling Language, is a language for object oriented design. We use UML diagrams, because “a picture is worth 1k words.“ UML class diagrams can show the important elements of and relationships between classes in a concise and intuitive way. UML is much more than just class diagrams. Other kinds of UML diagrams can illustrate how classes collaborate with one another and how users interact with classes. We will only use a small subset of UML in this book.
Most of our diagrams were created with a design tool called Umbrello. For a good overview of UML, we recommend “The Umbrello UML Modeller Handbook”, available from the help menu of Umbrello. Another reference that provides maximum content and minimal bulk is [Fowler04].
Figure 2.1 is a class diagram with only one class: Person.
Notice that the declarations appear as name : type, Pascal-style, rather than the more familiar C++/Java style, where the names come after the types.
This is to help with readability, because we tend to read from left to right, this syntax helps us find names faster.
Notice also that public members are preceded by a plus sign (+) and private members are preceded by a minus sign (-).
| Generated: $Date: 2009-09-08 12:15:32 -0400 (Tue, 08 Sep 2009) $ | © 2009 Alan Ezust and Paul Ezust. |