RE: [PHP] PHP5 interfaces?

From: Date: Tue, 23 Sep 2003 18:35:22 +0000
Subject: RE: [PHP] PHP5 interfaces?
Groups: php.general 
Request: Send a blank email to php-general+get-163618@lists.php.net to get a copy of this message
[snip] So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee implementation; } function position() { // code for BoardMember implementation; } } And if I only implement position() once then it will return an error? This seems more than a little confusing, and like it could cause serious mistakes down the road (during maintenance, etc) [/snip] Why don't you (pretend the following is emphasized) test it (/emph) to find out? [ALERT - NEWBIE GUIDE ADDITION] 10. Testing yields results - rather than speculate over potential code chunks write a small test bed and then apply vigorous automated or manual testing. [/ALERT]

« previous php.general (#163618) next »