posted 17 years ago
Hi,
As you said in your class name, your example is about overloading, not overriding, so you cannot expect polymorphic behaviour. The method will be called based on the reference type, not the actual object type.
Radu Zaharia
SCJP 1.4, SCBCD 1.3