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
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
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
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
[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
5 matches
Mail list logo