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 |
How cache is implemented in web application for DB queries?
What all details the assembly manifest will contain?
What's difference about switch statements in C# ?
What is the difference between new and override in c#?
What?s the difference between the Debug class and Trace class?
What are the boolean data types in c#?
How to throw an caught exception from cath block?
What?s a satellite assembly?
Describe the ways of cleaning up objects in c#.
What is the difference between writeline and write in c#?
What do you mean by stack and heap in c#?
6. If we assign a value in textbox on Page_UnLoad event, will it display?
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)