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 20:43:58 +0100
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
At 20:20 12.03.2003, Andrei Zmievski wrote: >On Wed, 12 Mar 2003, Marcus B=F6rger wrote: > > This works even though i do not like extends FOO. > >Why? Both C# and Java (AFAIR) allow interfaces to extend other >interfaces. Because of the second part of the answer. It is a little bit strange that an interface can extend and implement an interface but a class can only implement interfaces. Also it is a bit weired that i can implement multiple interface but extend only one. Hey these two words sound different and should have a clearly different meaning. I think we should disallow classes extending interfaces. Only >'implements' should be supported. As said already: yes. marcus