iAnywhere Water System User Manual

Chapter 2 Building an Object-Oriented Model
23
Creating a class from a diagram
v 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.
3 Click the Pointer tool in the palette toolbar.
4 Double-click the new class symbol in the diagram.
The class property sheet appears.
5 Type a class name and a class code.
6 Click 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.