The following topics will be covered in this article
1. Understanding explicit interface implementation
2. Restriction to remember while using explicit interface implementation
Explicit interface implementation
1.If a class implements two interfaces that contains a member (method, properties etc.) with the same signature, then implementing that member on the class will cause both interfaces to use that member as their implementation. This can lead to an incorrect implementation of one or both of the interfaces.
2. Explicit interface implementation can be achieved by naming the class member with the
name of the interface and a period.
3. Explicit implementation is also used to resolve cases where two interfaces each declare
different members of the same name.
Restriction to remember while using explicit interface implementation
1.If you implement an interface member explicitly then the class member is called through the
interface, and is specific to that interface.
2. An interface member that is explicitly implemented cannot be accessed from a class