【发布时间】:2016-06-10 08:19:34
【问题描述】:
我创建了一个类和一个子类。我在父类中也有一个接口。如何让子类实现接口?
代码是:
class Car
{
public interface ISmth
{
void MyMethod();
}
}
class MyCar : Car
{
//implement the interface
}
【问题讨论】:
标签: c# class inheritance interface subclass