Implementing Operations from an Interface

When you create a realization link between a class and an interface, the class must implement all the operations of the interface.

Note: To automatically create the necessary operations in your class, click Tools > Model Options to open the Model Options dialog, and select the Auto-Implement Realized Interfaces option. If this option is not selected, you can implement the operations manually.
  1. Open the property sheet of a class that is linked to one or more interfaces by realization links and click the Operations tab.
  2. Click the Unimplemented Operations tool to open a selection dialog, which lists all the operations waiting to be implemented in the class.
  3. Select one or more operations, and then click OK to copy them to the list of operations of the class with their stereotype set to <<Implement>>.
    Each implemented operation has the same signature (name and parameters) as the original operation, and you can only modify the code on its Implementation tab.