Part 5: C# Tutorial – Explicit Interface Implementation



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
instance:


16 thoughts on “Part 5: C# Tutorial – Explicit Interface Implementation

  1. Dannie Reiners

    Hi There! We are searching for experienced people that might be interested in from working their home on a full-time basis. If you want to earn $100 a day, and you don’t mind developing some short opinions up, this is the perfect opportunity for you! Simply click the link here NOW!

  2. Berna Schwartze

    Hi There! We are looking for experienced people that are interested in from working their home on a part-time basis. If you want to earn $100 a day, and you don’t mind writing some short opinions up, this might be perfect opportunity for you! Simply check out the link here NOW!

  3. eebest8

    “Hi, Neat post. There’s an issue with your site in web explorer, might check thisВЎK IE nonetheless is the market leader and a huge section of other people will omit your fantastic writing due to this problem.”

  4. borvest inkral

    What i do not understood is actually how you are no longer really much more smartly-preferred than you might be right now. You are very intelligent. You recognize therefore considerably in the case of this topic, produced me individually believe it from a lot of various angles. Its like men and women don’t seem to be fascinated until it is one thing to do with Girl gaga! Your individual stuffs excellent. At all times handle it up!

  5. audio transcription services

    Businesses are erasing the boundaries between nations and as a
    upshot, communication play the essential part in expanding your reach as entrepreneur.
    Communication, in this quandary, is the knack to mutate between any
    intercourse brace there is and the transfiguration services increase
    has made it disinterested easier. You valid be suffering with to change sure the
    flock you depute your decipherment offers legitimate serving,
    which can be verified by checking the reviews of the fastidious one.

Leave a Reply to Patrice Lanoie Cancel reply

Your email address will not be published. Required fields are marked *