posted 16 years ago
thanks Sam for your kind reply. I am sorry for missing the 'extends Uber'. If it missed 'extends', it would not anyhow work.
What i used to think was, static members declared in parent class cant be referred from child class. thats why i got confused. After reading your reply, i wrote this
which prints 3 twice. It shows that x is still only in Parent, while Child updates Parent's copy.
Thanks again.