note 104208 deleted from language.oop5.abstract by thiago
| From: | thiago@php.net | Date: | Wed, 01 Jun 2011 12:54:37 +0000 |
| Subject: | note 104208 deleted from language.oop5.abstract by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180162@lists.php.net to get a copy of this message | ||
Note Submitter: joelhy
----
The documentation says: "It is not allowed to create an instance of a class that has been
defined as abstract.". It only means you cannot initialize an object from an abstract class.
Invoking static method of abstract class is still feasible. For example:
<?php
abstract class Foo
{
static function bar()
{
echo "test\n";
}
}
Foo::bar();
?>