Re: How to call parent's class constructor?
| From: | Jon Parise | Date: | Sat, 24 Jun 2000 19:13:37 +0000 |
| Subject: | Re: How to call parent's class constructor? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2926@lists.php.net to get a copy of this message | ||
On Sat, Jun 24, 2000 at 08:39:08PM +0200, Sebastian Bergmann wrote:
> class Foo
> {
> // constructor
> function Foo() { ... }
> }
>
> class FooBar
> {
> // constructor
> function FooBar() { ... }
> }
>
> Now I need to call Foo's constructor from within FooBar's constructor.
I believe Foo::Foo() will work.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member