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 |
How more than one version of an assembly can keep in same place?
What is event sourcing in c#?
What is c# most used for?
What are the 3 types of comments in c#?
What is difference between .net and c#?
What is generic in c#?
If we write a goto or a return statement in try and catch block will the finally block execute?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
how to print invert pyramid in c#
Explain the difference between directcast and ctype.
What are the 2 kinds of data type conversions in c#?
What is assembly manifest?