3.3. The Class Diagram
No doubt class modeling is currently the most popular use of UML. Many software projects have used UML for the only reason to model classes and to generate simple source-code scaffolding. Several integrated development environments support this approach by using UML as a graphical editor for the source code.
However, class modeling can also be used outside the software development domain in a meaningful way. Generally speaking, classes are used to describe structures and behaviors of virtual or real-world objects. Look at your current environment, for example. If you are presently in a room, then the class diagram in Figure 3.5 can be thought of as a simple model of your environment. A room can contain several tables, with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access