1.

Implement two interface with same function define in them

Answer»

Below is the example how to HANDLE two INTERFACE same implementation in the class
(1)Fist Interface declartion
interface Intface1
{
void INTFUNCTION();
}

(2)Second Interface Declartion
interface Intface2
{
void intFunciton();
}

(3)Class that CALL both interface in it
class myClass: Intface1, Intface2
{
public void Intface1.intFunction()
{
// code here functionality for intFunciton of interface Intface1
}
public void Intface2.intFunction()
{
// code here functionality for intFunciton of interface Intface2
}
&nbsp}



Discussion

No Comment Found