Re: [PHP-DEV] Re: [PHP-CVS] 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
[email protected] ((Marcus Börger)) Wed, 12 Mar 2003 19:19:06 +0100
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
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