Login Register

Object Orientation

(this section currently is: http://docs.dojocampus.org/dojo/declare

As we saw in the introduction to Part 3, JavaScript doesn't have a class system like Java. But Dojo has functions to simulate one. For some background on JavaScript and prototype-based object orientation, chapter 9 of David Flanagan's JavaScript: The Definitive Guide, 5th edition is a good read.

This section has some pretty abstract stuff, and you may wish to skip it on the first read. Certainly you can do a lot with Dojo without using dojo.declare or the other object orientation functions. But a good knowledge of it will help you program faster and smarter.

Link "chapter 9 of David Flanagan's JavaScript: The Definitiv...

Nice if you added a link to this guide.

Bad link

The link for "introduction to Part 3" doesn't go to part 3, it goes to the top level of the book.

But don't fix the link, because the introduction to part 3 doesn't really say that, and certainly doesn't say enough about JavaScript object orientation to justify the back-reference. I suggest deleting the clause and merging in the next sentence, i.e., "JavaScript doesn't have a class system like Java, but Dojo has functions to simulate one." is a fine opening sentence for this chapter.