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 and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 18 : 37
Object-oriented Programming in C#
Abstract classes, Interfaces, and Patterns
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

/user/normark/oop-csharp-1/sources/c-sharp/playing-card/playing-card-minimalistic/PlayingCard.csThe class Playing card with a property Value.


/user/normark/oop-csharp-1/sources/c-sharp/interfaces/explicit-interface-member-implementation/gameobject.csThe Interface IGameObject with a conflicting Value property.


/user/normark/oop-csharp-1/sources/c-sharp/interfaces/explicit-interface-member-implementation/PlayingCard.csA class Card which implements IGameObject.


/user/normark/oop-csharp-1/sources/c-sharp/interfaces/explicit-interface-member-implementation/Client.csSample use of class Card in a Client class.


/user/normark/oop-csharp-1/sources/c-sharp/interfaces/explicit-interface-member-implementation/outputOutput of Card Client.