Suppose I have these 2 Interfaces.
public interface IMath2
{
int GetSum(int x, int y)
{
return x + y;
}
}
public interface IMath1
{
int GetSum(int x, int y)
{
return x + y;
}
}
and One class with inherit Imath1 and Imath2.
public class Math : IMath1,IMath2
{
int x = 5, y= 6;
int z = GetSum(x,y);
}
Here, I can't access the GetSum method from parent Interfaces. Please provide solutions.
Here's a working example:
That give me this output: