Is there any possibility in inheritance in c# so that we can have subclass constructor call only without calling base class constructor as a default base class constructor calls firstly
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
A subclass constructor will always call a superclass constructor: either the default superclass constructor or a (maybe parametrized) superclass constructor, which can be chosen by you, when you declare your subclass constructor.