0
我已经创建了一个类和一个子类,并且都有一堆代码。我创建了一个父类的接口,我不知道如何让我的子类实现的接口:/如何使一个子类实现一个接口?
的代码是:
class Car {
public interface ISmth
{
void MyMethod();
}
}
class MyCar : Car {
//implement the interface
}