我有几个不需要任何州的课程.从组织的角度来看,我想把它们放到层次结构中.
但似乎我无法为静态类声明继承.
像这样的东西:
public static class Base { } public static class Inherited : Base { }
不管用.
为什么语言的设计者会关闭这种可能性?
c# inheritance static
c# ×1
inheritance ×1
static ×1