Chapter 2 Building an Object-Oriented Model

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.

4Double-click the new class symbol in the diagram. The class property sheet appears.

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

Page 33
Image 33
Sybase 7.5 manual Inner classes, Creating a class from a diagram, To create a class in a diagram