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



If u declare two interfaces withsame methodnmae .prototype how can u call the particular method fro..

Answer / umesh

Using Interface.Methodname

Is This Answer Correct ?    4 Yes 0 No

If u declare two interfaces withsame methodnmae .prototype how can u call the particular method fro..

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

If u declare two interfaces withsame methodnmae .prototype how can u call the particular method fro..

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

If u declare two interfaces withsame methodnmae .prototype how can u call the particular method fro..

Answer / srinivas.r

we need to implement methods of interfaces explictly i.e
interfaceName.methodName

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

When a new instance of a type is created, what is the type of method implicitly called?

2 Answers  


Value Type and Reference Type Data type in C#?

0 Answers   HCL,


What are predicates in c#?

0 Answers  


Can abstract class be instantiated c#?

0 Answers  


Is a decimal an integer?

0 Answers  






Why do we need reflection in c#?

0 Answers  


How can I produce an assembly?

0 Answers  


Why main method is static in c#?

0 Answers  


When should I use static in C#?

0 Answers   SwanSoft Technologies,


WHICH IS THE BEST BOOK FOR A BEGINNER TO LEARN AP.NET 3.5, C#.NET & ALL THE FEATURES OF VISUAL STUDIO2008? WHAT ARE THE CERTIFICATIONS IN THIS FIELD? WHICH IS BEST BOOK FOR CLAERING CERTIFICATION EXAM? PLZ HELP ME YAAR

1 Answers  


Explain the role of the datareader class in ado.net connections?

0 Answers  


Explain what is an interface in c#?

0 Answers  


Categories