Henry Wong wrote:Or basically, inheritence applies, even before construction of the object is completed. The Child class' add() method gets called in every case, even when called from the Base class constructor.
Both Base and Child are loaded before any code is run. This must be for the JVM to know
how to do the construction. So the Base/Child relationships are in place, including the
override of add(). Then the Child() constructor is called.
Jim ...
...