note 56129 rejected from language.oop5.interfaces by sean

From: Date: Wed, 24 Aug 2005 14:27:35 +0000
Subject: note 56129 rejected from language.oop5.interfaces by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94128@lists.php.net to get a copy of this message
Note Submitter: btesanovic at gmail dot com ---- 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

« previous php.notes (#94128) next »