Sayonara
06-07-2007, 03:37 PM
Hi all, just a quickie:
If I have class B extending class A, and both classes contain different constructors, does the creation of an object of class B cause initialisation with B's constructor only, or A's then B's?
In other words, if I want B to be initialised with properties of A, is it enough to simply extend, or do I need a call to the parent's constructor as well?
If I have class B extending class A, and both classes contain different constructors, does the creation of an object of class B cause initialisation with B's constructor only, or A's then B's?
In other words, if I want B to be initialised with properties of A, is it enough to simply extend, or do I need a call to the parent's constructor as well?