Hi,

> Thanks, that's really great, I'll have to really play around with that
> when I've got the time to really get to grips with it.  Can you do
> multiple inheritence with that trick?

That is not a trick, but a usuall JavaScript idiom.

You can simulate multiple inheritance as well, but then you need to copy all 
the Elements from the second parent to your derived "class".

I think you should not try to only simulate classes with prototypes, but take 
your time to understand how prototypes work and what they bring to you. They 
can be used to simulate a class based approach as well, but they are not 
perfect at it. On the other hand they can bring you other features that you 
don't have with classed based object orientation.

Christof

Reply via email to