NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

4.5.2 Implementing methods

Both structures and classes can implement interfaces. The intent to implement an interface is declared by the Implements statement which specified one or more interfaces to be implemented. The structure or class must also supply an implementation of each member of the interface by providing a method with the same signature and an Implements clause. A single method may implement several interface type members, as long as they all have the same signature.

A inherited class may not implement an interface type member already implemented by any of its base classes. However, when an interface method is implemented using an overridable method in a base type, it is possible for derived classes to override the overridable method and alter the implementation of the interface. A derived class may implement an interface whose base interfaces are implemented by its base classes. In that case, the derived class only implements the interface's type members not already implemented by the base types.