namespace 矩形
{
interface Ia
{
void fangfa();
}
class A : Ia
{
public void fangfa (int x,int y)
{
Console.WriteLine("该矩形的面积为:"+x*y);
}
}
class Program
{
static void Main(string[] args)
{
A a = new A();
b.fangfa(5,5);
}
}
}
错误: 矩形.A 不实现接口成员la.fangfa()