note 49218 added to language.oop5.interfaces

From: Date: Thu, 20 Jan 2005 14:22:32 +0000
Subject: note 49218 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-83683@lists.php.net to get a copy of this message
interfaces support multiple inheritance <?php interface SQL_Result extends SeekableIterator, Countable { // new stuff } abstract class SQL_Result_Common { // just because that's what one would do in reality, generic implementation } class SQL_Result_mysql extends SQL_Result_Common implements SQL_Result { // actual implementation } ?> This code raises a fatal error because SQL_Result_mysql doesn't implement the abstract methods of SeekableIterator (6) + Countable (1) ---- Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49218 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49218&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49218&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49218&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49218&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49218&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49218&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83683) next »