note 77378 deleted from language.oop5.static by felipe
| From: | felipe@php.net | Date: | Mon, 24 Mar 2008 23:14:40 +0000 |
| Subject: | note 77378 deleted from language.oop5.static by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137521@lists.php.net to get a copy of this message | ||
Note Submitter: condor at the-contented dot de
----
Static methods (of course) may be abstract, and therefore you may define static methods in
Interfaces:
<?php
interface Foo {
static function doSomething($a);
}
class Bar implements Foo {
public static function doSomething($a) {
echo 'Hi!';
}
}
?>
Leaving the implementation of doSomething() away will cause a Fatal Error.
(Just as a note 'cause I asked myself whether it would be possible :))