Chapter 2 Building an
Creating a class from a diagram
ϖTo create a class in a diagram:
1 Click the Class tool in the palette toolbar.
2 Click anywhere in the diagram.
The following symbol appears at the click position:
At creation, a class is named Classn, where n is a number assigned in the order of the creation of objects.
3Click the Pointer tool in the palette toolbar.
4
5Type a class name and a class code.
6Click OK.
The newly created class is visible in the Browser.
Inner classes
An inner class is a class that is defined within another (outer) class or interface. Inner classes are commonly used in Java. They help you to improve the overall visibility of your model by allowing you to group together classes that logically belong together.
You can add inner classes to a class or an interface.
23