Interface implementation

Overview

This feature maintains consistency for operations in interfaces and their implementing classes. Operations can be automatically created when a class implements a new interface, including a redefinition link visible in the fast link editor.

When the name of a method in the interface changes, all the redefined methods in its child classes are updated. If you decide to create a new operation in your interface, the same operation can be created in the child classes.

Modifying automatic behavior

The “Automation” group of Modelio C# Designer parameters contains the different behaviors for the automatic update of classes implementing an interface:

If you choose “Yes”, the modifications made to the implementing classes will be propagated, whereas if you choose “No”, the model will remain unmodified.

Launching the update manually

Automatic interface implementation can also be launched manually on model elements.

On an interface:

On a class implementing an interface: