Thankyou Ankit, for the explanation of -why Sub is printed 1st and then comes the values 1 and 2.
My question is, how is ga.i evaluated to 1? Clearly, ga is an Arabik object and Arabik class overrides the value of instance varibale i to 2, so at runtime should'nt it get the value 2 for i? If not, is runtime
polymorphism applicable only to methods and not instance variables?
I hope I am making my doubt clear.
Thankyou,
Surya