Re: Re: cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt
interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

From: Date: Wed, 12 Mar 2003 18:19:06 +0000
Subject: Re: Re: cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt
interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-95083@lists.php.net to get a copy of this message
At 14:53 12.03.2003, Andrei Zmievski wrote:
I have 2 questions: 1. Do the interface functions have to be explicitly specified as abstract? interface Foo {
    function bar();
} Because this runs fine for me with no errors.
They don't have to (currently) I weote the tests with abstract as i thought this could be changed.....
1. What is the difference between the following: interface Foo { } class Boo extends Foo { } and class Zoo implements Foo { }
a class can only extend ONE class/interface but it can implement multiple interfaces. If you ask me i would not allow extending interfaces at all. regards marcus

« previous php.dev (#95083) next »