Re: [PHP-DEV] Constructor Inheritance

2001-05-22 Thread Kristian Köhntopp
Neil Kimber wrote: > Haven't tried it but try: > > class B extends A { > function B(){ > A::A(); > // do your extra stuff here. > } > } I have recently updated the PHP manual to reflect the behaviour of PHP 4. Please read http://www.php.net/manual/en/language.oop.php for all

Re: [PHP-DEV] Constructor Inheritance

2001-05-21 Thread Markus Fischer
Hello Tiago, this is not the PHP support forum. PHP-DEV is for developing PHP. You want to post such questions to PHP-GENERAL. On Mon, May 21, 2001 at 04:17:49PM +0100, Tiago Moitinho wrote : > How do I inherit a class that inherits the constructor behaviour from the > parent class, assuming th

RE: [PHP-DEV] Constructor Inheritance

2001-05-21 Thread Neil Kimber
Haven't tried it but try: class B extends A { function B(){ A::A(); // do your extra stuff here. } } -Original Message- From: Tiago Moitinho [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 16:18 To: '[EMAIL PROTECTED]' Subject: [PHP-DEV] Constructor Inhe

[PHP-DEV] Constructor Inheritance

2001-05-21 Thread Tiago Moitinho
Hello all, I am new to PHP, so please appologize if my question looks silly... How do I inherit a class that inherits the constructor behaviour from the parent class, assuming the parent class cannot be changed? For instance, class A { // this class is already define, not changeable fun