Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

joelhy
14 years ago
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();
?>

<< Back to user notes page

To Top