Re: Interfaces in PHP
| From: | Tim Converse | Date: | Wed, 21 Aug 2002 06:25:51 +0000 |
| Subject: | Re: Interfaces in PHP | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87216@lists.php.net to get a copy of this message | ||
--- Brad LaFountain <rodif_bl@yahoo.com> wrote:
> 2) Interfaces as they exist in java don't really give you
> much in a stripting
> language but if you insist on having something like that
> you can curently do it
> with the zend1.
>
> class temperature {
> function __construct($value) {}
> function toCelcius() {}
> function toFarenheight() {}
> }
>
> just use that class and extend away....
Brad ---
Not the same thing at all, as I'm sure you know. You
usually want interfaces in addition to whatever (single)
inheritance structure you already have.
-t
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com