|
Quick Constructor Question
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?
__________________
Quote:
|
Originally Posted by liorean
Just remember that you code for the user, and the user visits you because what you code is good.
|
|