RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] > FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? [/snip] PHP5 will be using the Zend 2 Engine, and gives a standard way of declaring constructor methods by calling them by the name __construct(). An example from http://www.php.net/zend-engine-2.php

Re: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Decapode Azur
> FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? > Since you are inheriting the class the 'constructor' for the parent class > should work. If it doesn't (I have not tested it, and neither have > you)then the class extension can contain a 'contstructor' that

RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? [/snip] FYI ... anything below PHP5 has a pseudo constructor. Since you are