Yes, Zero is what you should get, since you made a single instance of the child class and did not assign its values to the inherited variables,
child obj1 = new child();
instead of creating an instance of another instance of the base class separately and assigning value to its members,
baseClass obj = new baseClass();
both runtimes, both an instance of the base class and a child instance, are completely different objects, so you must assign child values separately, for example
obj1.intF = 5; obj1.intS = 4;
then you get the desired result.
source share