Implementing Interfaces by Delegation The implements directive allows you to delegate implementation of an interface to a property in the implementing
class. For example,
property MyInterface: IMyInterface read FMyInterface implements IMyInterface;
declares a property called
MyInterface
that implements the interface
IMyInterface
.
The implements directive must be the last specifier in the property declaration and can list more than one interface,
separated by commas. The delegate property
must be of a class or interface type.
cannot be an array property or have an index specifier.
must have a read specifier. If the property uses a read method, that method must use the default register calling
convention and cannot be dynamic (though it can be virtual) or specify the message directive.
The class you use to implement the delegated interface should derive from
TAggregationObject
.