GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 433 of 436    Print  
Explicit Implimentation
What do you mean by Explicit Interface Implimentation? What's Interface Mapping?


  
Total Answers and Comments: 3 Last Update: October 23, 2009     Asked by: chandra_123 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: cocojojo
 
A class that implements an interface can explicitly implement a member of that interface. When a member is explicitly implemented, it cannot be accessed through a class instance, but only through an instance of the interface

Above answer was rated as good by the following members:
chandra_123
April 23, 2009 12:16:36   #1  
cocojojo Member Since: April 2009   Contribution: 1    

RE: Explicit Implimentation
A class that implements an interface can explicitly implement a member of that interface. When a member is explicitly implemented it cannot be accessed through a class instance but only through an instance of the interface
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 07, 2009 06:19:44   #2  
chintan.desai Member Since: July 2009   Contribution: 8    

RE: Explicit Implimentation
When class implement interface user mandatory needs to specify interface method body. Such implementation is called as Exlicit
implementation. All the signature of interface API must be compatible with interface API. Dervice class can also define their
own API.

 
Is this answer useful? Yes | No
October 23, 2009 12:01:41   #3  
RajMarandi Member Since: October 2009   Contribution: 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
}
}



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape