On Fri, 21 Jan 2005 11:56:55 +0100
Jochem Maas <[EMAIL PROTECTED]> wrote:
> Tbird switched the reply and reply-all buttons again ;-)...
>
> > ?>
> > IMHO its normally to use access type for methods declaration in interfaces.
> > Why not?
> > Maybe my first example was not sufficiently illustrat
Tbird switched the reply and reply-all buttons again ;-)...
?>
IMHO its normally to use access type for methods declaration in interfaces. Why not?
Maybe my first example was not sufficiently illustrative. But my question was "why it does not work in one environment and work fine in another".
it
On Thu, 20 Jan 2005 11:13:11 -0800 (PST)
"Richard Lynch" <[EMAIL PROTECTED]> wrote:
> Sergio Gorelyshev wrote:
> > Hi all.
> >
> > Situation:
> >
> > interface MyInterface {
> > public static myMethod();
> > }
> >
> > class MyClass implements MyInterface {
> > public static myMethod() {}
> > }
Richard Lynch wrote:
Sergio Gorelyshev wrote:
Hi all.
Situation:
interface MyInterface {
public static myMethod();
}
class MyClass implements MyInterface {
public static myMethod() {}
}
This sample will crash with message
Fatal error: Access type for interface method MyInterface::myMethod() must
b
Sergio Gorelyshev wrote:
> Hi all.
>
> Situation:
>
> interface MyInterface {
> public static myMethod();
> }
>
> class MyClass implements MyInterface {
> public static myMethod() {}
> }
>
> This sample will crash with message
> Fatal error: Access type for interface method MyInterface::myMethod
Hi all.
Situation:
interface MyInterface {
public static myMethod();
}
class MyClass implements MyInterface {
public static myMethod() {}
}
This sample will crash with message
Fatal error: Access type for interface method MyInterface::myMethod() must be
omitted in somefile.php on line NN
6 matches
Mail list logo