[Solved] Hello!!!. So in a quiz que were given the following classes and we were asked to give the output. [closed]


The two additional setting are printed by B‘s constructor. B‘s constructor calls A‘s constructor which then calls B‘s overridden SetNumber Function which prints setting. B‘s constructor is called twice and SetNumber is called directly twice leading to four Settings.

solved Hello!!!. So in a quiz que were given the following classes and we were asked to give the output. [closed]