Chapter 2 Building an Object-Oriented Model

The list of operations appears.

2Click the operation that you want to modify. An arrow appears at the beginning of the line.

3Modify any of the properties of the operation directly in the list.

4Click OK.

Adding constructors and destructors to a class

A constructor is a special type of operation that creates and initializes an instance of a class.

A destructor, on the other hand, is the complement of a constructor in that it is an operation that it deinitializes and destroys the class instance. You can only create a default destructor for a given class, and only if the current object language for the OOM is PowerBuilder.

You can create constructors and destructors only from a class, from the

Operations page of the class property sheet.

Constructor and destructor names are assigned automatically by

PowerDesigner and you cannot modify them.

You cannot declare a Return Type for a constructor.

73

Page 83
Image 83
Sybase 7.5 manual Adding constructors and destructors to a class