interface ISampleInterface
{
void SampleMethod();
}
class ImplementationClass : ISampleInterface
{
void ISampleInterface.SampleMethod()
{
Console.WriteLine("a");
}
static void Main()
{
ISampleInterface obj = new ImplementationClass();//obj是接口
obj.SampleMethod();
Console.Read();
}
}
以上是msdn关于接口继承的代码,求加粗的方法的解释,谢谢