Re: Constructor Inheritance
| From: | phpUser | Date: | Thu, 20 May 2004 10:54:17 +0000 |
| Subject: | Re: Constructor Inheritance | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186572@lists.php.net to get a copy of this message | ||
>class B extends A {
>
> function B() {
> // call parents constructor
> A::A();
> }
>
>}
>
>- Markus
Why would you not use ...
class B extends A {
function B() {
{
parent::A();
}
}