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 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.