3.3 Natural Modeling Using Unified Modeling Language*
For the representation of a class, program code can be used (i.e., either text or a graphical notation). One of the available graphical description types is the Unified Modeling Language (UML) . Graphic illustrations are much easier for people to understand and provide a broader overview.
In the first section of a UML diagram, you can read the attributes of an object; in the second section, its operations. The + before the members, as shown in Figure 3.1 , indicates that they are public, and anyone can use them. Compared to Java, the type specification is reversed: First comes the name of the variable, then the type or (in the case of methods) the type of the return value. Other programming ...
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