Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Marek Kilimajer
Javier Muniz wrote: interface BoardMember { function position(); // used to set board position of board member } interface Employee { function position(); // used to set job title of employee } class BusyBoardMember implements Employee, BoardMember { function position(); // what

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
What I meant was not the implementation, what I meant was that there was no way for the compiler/parser to know whether I was implementing position() from the Employee interface or the BoardMember interface, the declaration was ambiguous. If I implement the function there, then (from what I can

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote: What I meant was not the implementation, what I meant was that there was no way for the compiler/parser to know whether I was implementing position() from the Employee interface or the BoardMember interface, the declaration was ambiguous. I

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
AM To: Javier Muniz Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] PHP5 interfaces? On Tue, 2003-09-23 at 14:01, Javier Muniz wrote: What I meant was not the implementation, what I meant was that there was no way for the compiler/parser to know whether I was implementing position() from

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Jay Blanchard
[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