O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required