Force base method call

后端 未结 13 1851
独厮守ぢ
独厮守ぢ 2020-12-11 00:15

Is there a construct in Java or C# that forces inheriting classes to call the base implementation? You can call super() or base() but is it possible to have it throw a comp

13条回答
  •  自闭症患者
    2020-12-11 00:54

    Don't think there's any feasible solution built-in. I'm sure there's separate code analysis tools that can do that, though.

提交回复
热议问题