12

Objects and Classes

Crude classifications and false generalizations are the curse of organized life.

—George Bernard Shaw (1856–1950)

Organizing the artifacts of your application into appropriate classes is one of the key goals of Object Oriented (OO) Analysis and Design. JavaScript is a fully Object Oriented language, and to achieve its full power we need to take full advantage of its OO features. However, we’ll see that Dojo provides some additional ways to work with the OO feature set of JavaScript that you’ll find really helpful when defining new classes and creating new objects. This chapter explores Objects, the OO features of JavaScript, and the OO enhancements provided by Dojo.

12.1. Objects Explained

JavaScript is an object oriented ...

Get Dojo: Using the Dojo JavaScript Library to Build Ajax Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.