note 55237 added to language.oop5.interfaces

From: Date: Thu, 28 Jul 2005 11:11:51 +0000
Subject: note 55237 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-92622@lists.php.net to get a copy of this message
Classes and interface names share a common name space, so you can't have a class and an interface with the same name, even though the two can never be used ambiguously (i.e. there are no circumstances in which a class and an interface can be used interchangeably). e.g. this will not work: interface foo { public function bling(); } class foo implements foo { public function bling() { } } You will get a 'Cannot redeclare class' error, even though it's only been declared as a class once. ---- Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55237 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55237&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55237&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92622) next »