> Duck typing will go a long way here.
>
> function(doc) {
>  if (doc.wheels && doc.engine) {
>  //I'm a vehicle
>  } else if (doc.wheels && doc.pedals) {
>  // I'm a bike
> }
> }
>

That seemed to be what Troy was hinting at with his example as well. I guess
explicit inheritance doesn't matter much when you're just storing the
attributes and not the methods. Thanks for the insight.

Reply via email to