note 77378 added to language.oop5.static

From: Date: Mon, 27 Aug 2007 08:22:24 +0000
Subject: note 77378 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-129830@lists.php.net to get a copy of this message
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 :)) ---- Server IP: 69.147.83.197 Probable Submitter: 91.64.170.180 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/77378 Del: integrated -- https://master.php.net/note/delete/77378/integrated Del: useless -- https://master.php.net/note/delete/77378/useless Del: bad code -- https://master.php.net/note/delete/77378/bad+code Del: spam -- https://master.php.net/note/delete/77378/spam Del: non-english -- https://master.php.net/note/delete/77378/non-english Del: in docs -- https://master.php.net/note/delete/77378/in+docs Del: other reasons-- https://master.php.net/note/delete/77378 Reject -- https://master.php.net/note/reject/77378 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129830) next »