After playing with a dozen different JavaScript Libraries such as Prototype, jQuery, YUI, just to name a few, I found every different library has a different way of simulating some sort of Class Hierarchy and provide some sort of Class Inheritance support. (Other than jQuery) Other than being very annoyed that when you create a new class, it has to be library dependent, unless you do the plain old way.
I'm wondering which library offers the best support for class inheritance in general and why.
I hope maybe one day JavaScript Library authors can agree on one style for Class creation and inheritance.
You should try Classy:
http://classy.pocoo.org/
It is simple and really small but has everything I need when constructing my classes.
I think Microsoft Ajax implements it just perfectly (with namespaces, inheritance & interfaces etc.)
Sample:
You might also be interested in qooxdoo, a framework for creating rich internet applications (RIAs). It includes a comprehensive OO layer, which aims at being powerful, elegant and fast:
See the following section in the manual, which has all the details: http://qooxdoo.org/documentation/0.8#object_orientation