Re: Class Posing
| From: | Sebastian Bergmann | Date: | Wed, 03 Oct 2007 14:33:45 +0000 |
| Subject: | Re: Class Posing | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32591@lists.php.net to get a copy of this message | ||
Sebastian Bergmann schrieb:
>> would it be possible to overload final classes?
> Of course. We are not changing the class declaration (compile-time) but
> intercept the object creation (run-time).
I may have been unclear here: a class may pose for a class that contains
final methods. The posing class, by way of the restriction imposed on
posing classes, can of course not override final methods of its parent
class.
--
Sebastian Bergmann http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69