If u declare two interfaces withsame methodnmae .prototype
how can u call the particular method from class?
Answers were Sorted based on User's Feedback
Answer / diana cheriyan
Suppose IntSample1 and IntSample2 are interface,then We call
method of IntSample1 by IntSample1.Methodname
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / n.v.s prasad
By using explicit interface declaration which is nothing
but (Interfacename.Methodname) but the problem is method
available to interface not for class(if you careate
instance of your class we are not able to access method
which we implemented above in our class, so method is
availble to interface only)
Note:If you want to acess method by instance of your class
we need to cast our instance to 'interface'
((instance)interfacename).methodname--->Possible
instance.methodname ---->Not possible
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srinivas.r
we need to implement methods of interfaces explictly i.e
interfaceName.methodName
| Is This Answer Correct ? | 2 Yes | 0 No |
What is the difference between CreateObject() and GetObject()?
Can you have parameters for static constructors?
Why we need get set property in c#?
Explain streamreader/streamwriter class?
How to exclude a property from xml serialization?
Is there any sample c# code for simple threading?
What is a linked list c#?
What is a partial class. Give an example?
is it possible to inherit a class but methods declared in the class should not be inheritable i possible how?
Is array reference type / value type?
Define sealed classes in c#?
What is response redirect in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)