Specifying realization relationships between interfaces and classes

To specify a realization relationship between an interface and a class that implements that interface, use the realization connector for object model diagrams.

About this task

Note: Realization is a "new term" based on the generalization element. This term feature means that it is also possible to right‑click a generalization element in a diagram and then select Change To > Realization.

The realization connector only serves a visual purpose when used in an object model diagram. The code generation for realization relationships is not determined by the connector used between the class and the interface, but by the application of the interface stereotype to the class element in the diagram that represents the interface.

If you apply the interface stereotype to a class element, then the appropriate code is generated for the interface and the implementing classes in IBM® Rational® Rhapsody® Developer for Java and IBM Rational Rhapsody Developer for C.


Feedback