How to call a function when a class implements 2 interfaces and function is present in both interfaces?
Answers were Sorted based on User's Feedback
we have two interfaces inclass thet two interfaces having same method name the time wecan call based on interface
example
interface1
{
add()
}
interface2
{
add()
sub()
}
class classname:interface1,interface2
{
'now wewant call the method add from interface1
interface1.add()
'now we want call the method add from interface2
interface2.add()
'now we want call the method sub() from interface2
interface2.sub()
}
| Is This Answer Correct ? | 1 Yes | 0 No |
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
C Sharp
How do I start a program in c#?
How a two-dimensional array declared in C#?
Is c sharp open source?
What is a resource? Provide an example from your recent project.
2 Answers IBM, Logica CMG, Wipro,
how to retrive a TextBox value in to Sql database using C# windows form application coding
How do you serialize in c#?
What is the use of giving more than one CATCH BLOCK in one TRY block? Directly we can give that catch(Exception e)?Why we go for arrayoutofbound Exception,divided by zero etc..? Explain
What are virtual classes in c#?
What are c# i/o classes?
What is the .NET collection class that allows an element to be accessed using a unique key?
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)