note 56129 added to language.oop5.interfaces

From: Date: Wed, 24 Aug 2005 13:31:12 +0000
Subject: note 56129 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-94127@lists.php.net to get a copy of this message
I have problem , if anybody can help. interface common{ function save(); function load(); } class baseClass{ function commonFunctionForAllObject(){ return 'All aobject will get this'; } } class derivedClass extends baseClass implements common{ /* here I need save and load function only in derived classes and also commonFunctions.. from base class but it happens tha PHP5 is confused or I am :) */ function load(){ /* Do something */ } function save(){ /* Do something */ } } ------------------------ $obj = new derivedClass(); $obj->load(); And it actualy works now ??? so I leave it here just in case somebody needs example ---- Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56129 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56129&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56129&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94127) next »