Abstract Classes?
| From: | Alan Lord | Date: | Sun, 23 Oct 2005 07:54:50 +0000 |
| Subject: | Abstract Classes? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-224509@lists.php.net to get a copy of this message | ||
Hi All,
I have started reading a couple of books about PHP 5 and whilst most of
it is comprehensible even to me :-), I fail to understand WHY there is
such a thing as an abstract class or method?
I think I understand what it is: A class that can't itself be
instantiated, only inherited from, or a method that describes itself
only in terms of what properties it accepts but no implementation
detail.
But could someone explain why I would want to use this? I'm sure it is
very useful but I can't quite see the benefit...
Thanks in advance
Al