> I had been under the impression that one could extend a class only once.
> That is, if I extend class A with class B I would then not be able to
> extend B again with any other class. 
> See: http://www.php.net/manual/en/keyword.extends.php
> "An extended class is always dependent on a single base class, that is,
> multiple inheritance is not supported. Classes are extended using the
> keyword 'extends'."
> With some testing however, it appears that I can extend class B with
> class C and class C with class D and so on...
> Am I misinterpreting the manual? I suspect I am. Or is this a new
> feature. Thoughts?

This is not a new feature.  In your example each class only has a single 
parent.  Multiple Inheritance is when you do something like:

class C extends A,B { ... }

Doing B extends A followed by C extends B is still single inheritance.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to