Force base method call

后端 未结 13 1868
独厮守ぢ
独厮守ぢ 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条回答
  •  -上瘾入骨i
    2020-12-11 00:58

    You may want to look at this (call super antipatern) http://en.wikipedia.org/wiki/Call_super

提交回复
热议问题