<<< Class diagram Example | Index | The instance variables and constructors >>> |
UML (Unified Modeling Language) is the industry standard used to describe the classes and objects of an object-oriented application.
The minus sign (-) in a UML class diagram marks the fields and methods that can't be accessed by other classes, while the plus sign (+) marks the fields and methods that can be accessed by other classes.
For each field, the name is given, followed by a colon, followed by the data type.
For each method, the name is given, followed by a set of parentheses. If a method requires parameters, the data type of each parameter is listed in the parentheses. Otherwise, the parentheses are left empty, and the data type of the value that's going to be returned is given after the colon.
<<< Class diagram Example | Index | The instance variables and constructors >>> |