Classes, Attributes, and Operations
A UML class is represented as a rectangle with one, two, or three compartments. Figures A.1 and A.2 illustrate a class with three compartments: The top one is used to show the class name and eventually a stereotype. We will explain shortly what a stereotype is. The second (middle) compartment is used to display the class attributes. The third (lower) one is used to display the class operations (including constructors). Either the middle or the lower compartment or both can be omitted. Most UML tools provide a way to hide either one. This is sometimes helpful, especially when dealing with classes that have many operations, for example.
The class name compartment can also contain a stereotype. In UML a stereotype ...
Get Visual Basic® .NET by Example 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.