Bluehost.com Web Hosting $6.95

RE: [PHP] PHP5 interfaces?

This is a discussion on RE: [PHP] PHP5 interfaces? within the PHP General forums, part of the PHP Programming Forums category; [snip] So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-23-2003
Jay Blanchard
 
Posts: n/a
Default RE: [PHP] PHP5 interfaces?

[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]
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0