W
Wallace
Hai All,
I am having some query in the following sample code... On creating
object for class1 and calling display function, it shows a message box
with "Hai". My question is
1. Which interface's display is called?
2. If I want to give different implementation for each display(), how
can I do that?
3. Again ambiguity occurs, how can differenciate from multiple
inheritance?
interface ITest1
{
void display();
}
interface ITest2
{
void display();
}
class class1 : ITest1, ITest2
{
public void display()
{
MessageBox.Show("Hai");
}
}
someone plz explain the concept here....
Looking forward for the response...
Thanx in advance...
I am having some query in the following sample code... On creating
object for class1 and calling display function, it shows a message box
with "Hai". My question is
1. Which interface's display is called?
2. If I want to give different implementation for each display(), how
can I do that?
3. Again ambiguity occurs, how can differenciate from multiple
inheritance?
interface ITest1
{
void display();
}
interface ITest2
{
void display();
}
class class1 : ITest1, ITest2
{
public void display()
{
MessageBox.Show("Hai");
}
}
someone plz explain the concept here....
Looking forward for the response...
Thanx in advance...