所以我遇到了界面和抽象类的问题。我这里有代码:
interface ISučelje1
{
void Metoda();
}
interface ISučelje2
{
int Metoda();
}
现在我用两个接口声明抽象类:
abstract class MojTip : ISučelje1, ISučelje2
{
public abstract void Metoda();
public abstract int Metoda(); //here i got problem
}
我不知道如何添加第二种方法我收到错误:
Type 'Program.MojTip' already defines a member called 'Metoda' with the same parameter types
提前致谢!