note 53640 added to language.oop5.static
| From: | lindsay dot marshall at ncl dot ac dot uk | Date: | Wed, 08 Jun 2005 07:08:29 +0000 |
| Subject: | note 53640 added to language.oop5.static | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90094@lists.php.net to get a copy of this message | ||
Note that you do not appear to be able to do this :
abstract class a
{
abstract public static function foo();
public static function bar()
{
self::foo();
}
}
class b extends a
{
public static function foo();
}
You get an error on the call of foo in the method bar. The implementation of static, especially with
regard to class hierarchies, appears to be a bit inflexible....
----
Manual Page -- http://www.php.net/manual/en/language.oop5.static.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53640
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53640&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53640&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53640&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53640&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53640&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53640&report=yes
Search -- http://master.php.net/manage/user-notes.php