note 75617 added to language.oop5.interfaces

From: Date: Fri, 08 Jun 2007 06:22:02 +0000
Subject: note 75617 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-127288@lists.php.net to get a copy of this message
Classes can adopt interfaces, without the interface-specified functions, if they are inherited from parent classes. <?php interface object_interface { public function object_function(); } abstract class abstract_object { public function object_function() { print ("This class is: abstract_object"); } } class child_object extends abstract_object implements object_interface { } $OB = new child_object; $OB->object_function(); ?> ---- Server IP: 87.124.64.96 Probable Submitter: 82.32.24.30 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php Edit -- https://master.php.net/note/edit/75617 Del: integrated -- https://master.php.net/note/delete/75617/integrated Del: useless -- https://master.php.net/note/delete/75617/useless Del: bad code -- https://master.php.net/note/delete/75617/bad+code Del: spam -- https://master.php.net/note/delete/75617/spam Del: non-english -- https://master.php.net/note/delete/75617/non-english Del: in docs -- https://master.php.net/note/delete/75617/in+docs Del: other reasons-- https://master.php.net/note/delete/75617 Reject -- https://master.php.net/note/reject/75617 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127288) next »