xbObjects revisited

Continuing the earlier discussion on Objects and inheritance, how does this affect the implementation of xbObjects.js?. It turns out that the approach used by xbObjects does not really benefit from the initialization via parent constructor function nor the normal JavaScript inheritance by setting a child class's prototype to an instance of the parent class. However, xbObject's implementation can be improved and I have made several improvements to increase speed and usefulness.

xbObject example




      

do example 6

Advantages

Disadvantages


home | up | topabout: