Originally posted by Geethakrishna Srihari:
Only constructors makes a call to parent constructors - Do overridden methods also follow suit?
Originally posted by Geethakrishna Srihari:
But why B is printed twice? Even if thats the case A followed by B shud be, and not B twice? Please clarify
Shweta Dhaneshwar.<br />SCJP 1.4 90%
Thnx
"There are no mistakes, only lessons"
Originally posted by Amol Fuke:
I did not get the explanation of above code .
Can you please explain in detail?
Thnx
Originally posted by Nischal Tanna:
The above code reflects that before initialising child class instance variables it goes to initialise parent.
This occurs coz before creating the child instance , parent class is loaded as well as its instance is created !!..
Thanks and Regards, Amit Taneja
Piyush Jain<br /> <br />Being happy doesn't mean everything's perfect. It means you've decided to see beyond the imperfections.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |