Sybase 7.5 manual Copying an attribute to another class, To copy an attribute to another class

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 69
Image 69

Chapter 2 Building an Object-Oriented Model

Copying an attribute to another class

You can copy an attribute from one class and add it to another class. If the class already contains an attribute with the same name or code as the copied attribute, the copied attribute is renamed. For example the attribute PERIPHLD is renamed PERIPHLD2 when it is copied to a class which already contains an attribute PERIPHLD.

ϖTo copy an attribute to another class:

1Double-click a class in the model. The class property sheet appears.

2Click the Attributes tab. The Attributes page appears.

3Click the Add Attributes tool.

A selection box appears. It lists attributes attached to all other classes in the model.

4Select one or more attributes in the list.

5Click OK.

The copied attributes appear in the list of attributes for the current class.

6Click OK.

59

Page 69
Image 69
Sybase 7.5 manual Copying an attribute to another class, To copy an attribute to another class