note 111028 added to language.oop5.abstract
| From: | passerbyxp at gmail dot com | Date: | Tue, 08 Jan 2013 10:56:27 +0000 |
| Subject: | note 111028 added to language.oop5.abstract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192834@lists.php.net to get a copy of this message | ||
It's not quite clear in this document, so in case someone wonder, abstract method can be
static:
<?php
abstract class FOO
{
abstract static function dump();
}
class BAR extends FOO
{
static function dump(){var_dump("BAR");}
}
BAR::dump(); // string(3) "BAR"
class FAULT extends FOO
{
function pr(){var_export("WTF");}
} // FATAL error
?>
----
Server IP: 69.147.83.199
Probable Submitter: 203.98.176.247
----
Manual Page -- http://php.net/manual/en/language.oop5.abstract.php
Edit -- https://master.php.net/note/edit/111028
Del: integrated -- https://master.php.net/note/delete/111028/integrated
Del: useless -- https://master.php.net/note/delete/111028/useless
Del: bad code -- https://master.php.net/note/delete/111028/bad+code
Del: spam -- https://master.php.net/note/delete/111028/spam
Del: non-english -- https://master.php.net/note/delete/111028/non-english
Del: in docs -- https://master.php.net/note/delete/111028/in+docs
Del: other reasons-- https://master.php.net/note/delete/111028
Reject -- https://master.php.net/note/reject/111028
Search -- https://master.php.net/manage/user-notes.php