You are here: Re: php 5 classes: public, protected and private « PHP Programming Language « IT news, forums, messages
Re: php 5 classes: public, protected and private

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация