Figure 4.9 contains an updated UML class diagram for the version of class
GradeBook in Fig. 4.7. We model properties in the UML as attributes—the property (in this case,
CourseName) is listed as a public attribute—as indicated by the plus (+) sign—preceded by the word “property” in guillemets (
»). Using descriptive words in guillemets (called stereotypes in the UML) helps distinguish properties from other attributes and operations. The UML indicates the type of the property by placing a colon and a type after the property name. The
set accessors of the property are implied, so they’re not listed in the UML diagram. Class
GradeBook also contains one
Display-Message, so the class ...