Re: __constructor parameter limitations.
| From: | Pierre Joye | Date: | Mon, 19 Sep 2011 00:49:23 +0000 |
| Subject: | Re: __constructor parameter limitations. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55511@lists.php.net to get a copy of this message | ||
On Mon, Sep 19, 2011 at 2:42 AM, Pierre Joye <pierre.php@gmail.com> wrote:
> But this exact example works, only the similar case using abstract
> will fail, and it makes to fail here as an abstract method is only the
> declaration, the implementation being done in the child class (bar
> extends foo). This is the concept of 'abstract', see it like the
> declaration and implementation in C. The PHP documentation is also
> clear about that:
>
> "Methods defined as abstract simply declare the method's signature"
I forgot to mention that abstract are per se more restrictive than
interface, given their nature (declaration of methods with their
signature, which must be respected). A rather abstract concept (if I
may say so :) ) but well defined and documented (be in php's doc or OO
books).
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org