This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I do not understand why line marked //1 calls the subclass's f_() method instead of the superclass's ? Thanks Pho
Regards,
Pho
Fei Ng
Ranch Hand
Joined: Aug 26, 2000
Posts: 1241
posted
0
Since f_() method is overridden in Child it will get called if the Object is Child no matter where. Becuase of late binding at runtime the method that will be called depends on the acutally Object. Since Child is in used and it has f_() this method will get called.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.