More in the series for C# programmers learning JavaScript, with Firebug as our scratchpad.
In this episode, we let go of class inheritance. Bye!
I know, it's taken you years to understand class inheritance until you could do it in your sleep. It took me years as well. We've had it engrained in us for a while: design a class to model some object in our problem space, worry about encapsulation and behavior, think about creating descendants that increase the specificity of our first more-general class, and perhaps keep on going to produce higher, more-specific classes. We exult in those class models and in the type-safety they give us.
No comments yet, be the first one to post comment.