On Mon, Sep 19, 2011 at 2:42 AM, Pierre Joye <pierre....@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php