|
Posted by Tony Marston on 11/30/06 10:55
"Michael Fesser" <netizen@gmx.de> wrote in message
news:dlrqm2phbf1khsc30vo1df9eoe6024u9c4@4ax.com...
> .oO(Tony Marston)
>
>>"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>>news:bpudnWTDrLPbNPHYnZ2dnUVZ_tudnZ2d@comcast.com...
>>>
>>> The PHP interface defines a set of methods (function) which are required
>>> by the classes which implement the interface. Java is similar in that
>>> respect. But both are a subset of the total interface.
>>
>>It is possible to access the method directly without an interface,
>>therefore
>>an interfae is not necessary.
>
> RTFM!
>
> Object Interfaces
> http://www.php.net/manual/en/language.oop5.interfaces.php
>
> Micha
That just tells me what interfaces ARE, but it certainly does not say that
interfaces are REQUIRED. It is possible to define a class method and access
it directly WITHOUT going through an interface, therefore an interface IS
NOT NECESSARY.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|