Creating a Standard Operation

PowerDesigner can create standard operations for your classifiers using tools on the classifier property sheet Operations tab.

  1. Open the property sheet of your classifier and click the Operations tab.


  2. Click the Add... tool, and select the type of standard operation you want to add:
    • Default Constructor/Destructor - to perform initialization/cleanup for classifiers. You can add parameters afterwards.

    • Copy Constructor - to copy the attributes of a class instance to initialize another instance.

    • Initializer/Static Initializer- [Java only] to initialize a class before any constructor.

    • Duplicate Operation - to create and initialize an instance of a class within the class.

    • Activate/Deactivate Operations - [PowerBuilder only]

    The operation is added to the list. Some or all of its properties will be dimmed to indicate that they are uneditable.
  3. [optional] Select the operation and then click the Properties tool to add parameters to it or otherwise complete its definition.
  4. Add other operations as necessary, or click OK to close the property sheet and return to your model.