3.5. UML class diagrams

As we’ve mentioned before, a UML class diagram is a good way to think about a program’s class structure. Now that we have some familiarity with the classes of our Pop Framework, we can use the relations between these classes as the basis for a more detailed discussion of UML class diagrams.

Keep in mind that UML diagrams are meant as visual tools to be used to clarify the structure of your program. They are not formal, precise objects like pieces of code. The vagueness – or even, horrors!, the downright sloppiness – of a UML diagram is a reality that you simply have to get used to. It’s a bit inimical to a programmer’s usual way of thinking. This is because UML is meant to be a communication channel that non-programmers ...

Get Software Engineering and Computer Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.