Call Constructor Base after Code Execution

后端 未结 9 2013
攒了一身酷
攒了一身酷 2021-02-12 12:33

Let say we have Class A and Class B. ClassB extends Class A. (ClassB : ClassA)

Now let\'s say that whenever I instantiate ClassB, I\'d like to Run some Random code and o

9条回答
  •  无人及你
    2021-02-12 13:16

    C# doesn't allow calling base constructors inside constructor bodies, different from Java.

提交回复
热议问题