As far as I know, this is fairly common in most programming languages
(but I just woke up so don't take my word on it!).  It allows you a
lot greater control over the construction of your class, since you can
force the child class to override what the parent class's default
member variable values are by calling the parent constructor first, or
you can have it be overridden by the parent by calling the parent
constructor at the end of the child's constructor.

Dave

On Sat, 26 Jun 2004 20:51:58 -0700, Jason Davidson
<[EMAIL PROTECTED]> wrote:
> 
> If you instantiate a child class, the parent class constructor is not
> called, is there a reason for this?  anyone know of plans to change
> this at all, ....
> the obvious workaround is to call the parents constructor inside the
> childs constructor, but this seems kinda strange.
> 
> Jason
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to