GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#

 Print  |  
Question:  Explicit Implimentation

Answer: What do you mean by Explicit Interface Implimentation? What's Interface Mapping?


October 10, 2009 12:01:41 #3
 RajMarandi   Member Since: October 2009    Total Comments: 1 

RE: Explicit Implimentation
 
interface I1
{
     void someMethod();
}
Interface I1
{
    void someMethod();
}
 
class someClass:I1,I2
{
  void I1.someMethod()
  {
       //This is called explicit implementation as  i am telling the compiler to implement someMethod of interface I1
  }
  void I2.someMethod()
  {
       //This is called explicit implementation of someMethod of I2 interface
  }
}


     

 

Back To Question