Lecture overview -- Keyboard shortcut: 'u'  Previous page: Sample use of IFormattable -- Keyboard shortcut: 'p'  Next page: Patterns and Techniques [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Abstract classes, Interfaces, and Patterns - slide 18 : 37

Explicit Interface Member Implementations

If a member of an interface collides with a member of a class, the member of the interface can be implemented as an explicit interface member

Explicit interface members can also be used to implement several interfaces with colliding members

PlayingCard.cs
The class Playing card with a property Value.
gameobject.cs
The Interface IGameObject with a conflicting Value property.
PlayingCard.cs
A class Card which implements IGameObject.
Client.cs
Sample use of class Card in a Client class.
output
Output of Card Client.