我试图通过静态类继承非静态类.
public class foo { } public static class bar : foo { }
我得到:
静态类不能从类型派生.静态类必须从对象派生.
我怎样才能从对象中派生出来?
代码在C#中.
c# oop
c# ×1
oop ×1