Re: [PHP4BETA] calling member in parent class
| From: | Andrei Zmievski | Date: | Mon, 07 Feb 2000 19:05:36 +0000 |
| Subject: | Re: [PHP4BETA] calling member in parent class | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9917@lists.php.net to get a copy of this message | ||
On Mon, 07 Feb 2000, Zeev Suraski wrote:
> Was that question directed to me? Again, it doesn't really matter. In
> both cases, you would have to:
> 1. Modify the parent class (which is what we're talking about in the
> first place).
> 2. Modify any of its derived classes.
>
> The only difference is whether you modify just the word after the
> 'extends' keyword, or all of the occurences of the parent class name in
> the file that contains a given derived class.
Tell me then, why does Java have keyword 'super'? I mean, they could
also just rename the Parent classes whenever appropriate.
-Andrei
"The secret of flying is to throw yourself
at the ground, and miss." -- Douglas Adams