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 |
In which order the destructor is called for an inherited class?
What is namespace c#?
What is a multicast delegate in c#?
What are the two kinds of properties?
Is php easier than c#?
Why do we use constructors in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
why C#.net doesnot support prcedures and why it supports structs,functions
What is the purpose of static?
What Is The Difference Between ViewState and SessionState?
Does c# support properties of array types?
What is the difference between static and private constructor?