LANGUAGE

Multiple interface implementation

A class may implement multiple interface contracts; required members must be supplied.

Formal Syntax & Structure

csharp syntaxcsharp
class Label : IShortName, ILongName { /* members */ }

Working Example

Example Snippetcsharp
class Label : IShortName, ILongName { string IShortName.Name() => "Box"; string ILongName.Name() => "Storage box"; }
C# & .NET Reference