Re: [PHP4BETA] Abstract Classes
| From: | Zeev Suraski | Date: | Sat, 29 Jan 2000 01:24:52 +0000 |
| Subject: | Re: [PHP4BETA] Abstract Classes | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9546@lists.php.net to get a copy of this message | ||
On Fri, 28 Jan 2000, Kevin Morris wrote:
>
> ----- Original Message -----
> From: Ken Leshner <kleshner@spyral.net>
> To: Kevin Morris <kevinmorris@anaerobesystems.com>
> Cc: <php4beta@lists.php.net>
> Sent: Friday, January 28, 2000 12:14 PM
> Subject: Re: [PHP4BETA] Abstract Classes
>
>
> > > Are their any plans for abstract classes in php4? This would facilitate
> > > designing resusable packages and implementing design patterns without
> > > inconveniencing those not wishing to take an object oriented approach to
> > > their php scripts...
> >
> > An abstract class is designed specifically as a class from which
> > other classes can be derived. It is incomplete and only the
> > classes derived from it can be instantiated.
> >
>
> And further, in a well written OOP language, classes derived from an
> abstract class MUST override the methods
> stated in the abstract class.
>
> If you're telling me php4 can do this, I'm brimming with geek excitement.
> What's the syntax?
There are no abstract classes (interfaces) in PHP, there is simple
inheritence (full, of both interface and functionality).
Zeev
>
> Thanks,
> Kevin
>
>
> >
> > --
> > PHP 4.0 Beta Mailing List
> > <http://www.php.net/version4/>
> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> > For additional commands, e-mail: php4beta-help@lists.php.net
> > To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/