I have 2 interfaces as,
public interface I1
{
string GetRandomString();
}
public interface I2
{
string GetRandomString();
}
and in a class, I have implanted both,
public class ClassA : I1, I2
{
string I1.GetRandomString()
{
return "GetReport I1";
}
string I2.GetRandomString()
{
return "GetReport I1";
}
}
Now in main method I want to access , these interface method but not able to
static void Main(string[] args)
{
var objClassA = new ClassA();
objClassA.GetRandomString(); // not able to do this, comile time error ...
}
I know that , I am missing some basic OOPS stuff , just wanted to know that. any Help ?