iAnywhere Water System User Manual

Chapter 2 Building an Object-Oriented Model
73
The list of operations appears.
2 Click the operation that you want to modify.
An arrow appears at the beginning of the line.
3 Modify any of the properties of the operation directly in the list.
4 Click 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.