Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Javascript uses prototypal inheritance. Crockford has an excellent article on <a href="http://www.crockford.com/javascript/inheritance.html" rel="nofollow noreferrer">how that's different from classical inheritance</a>. Prototypal inheritance in JavaScript allows you to do all sorts of things that C++, Java, C#, etc. may not allow you to do and in ways that you may not expect. Because that's what's built into Javascript, others have created methods of extension such as <a href="http://www.ruzee.com/blog/2008/12/javascript-inheritance-via-prototypes-and-closures" rel="nofollow noreferrer">closure-based</a> inheritance where classes are created with closures instead of the standard formula.</p> <p>The library that you linked to states in its <a href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/overview_api.htm" rel="nofollow noreferrer">documentation</a> that is based on <a href="http://dojotoolkit.org/" rel="nofollow noreferrer">dojo</a>, <em>not</em> jQuery. The two are both Javascript frameworks and are different.</p> <p>For inheritance in dojo I doubt you could do much better than the <a href="https://stackoverflow.com/questions/355848/how-can-i-emulate-classes-in-javascript-with-or-without-a-3rd-party-library/356343#356343">references in this answer</a> to a similar question about inheritance in dojo. One option suggests looking at <code>dojo.delegate();</code> and <code>dojo.declare();</code>. <a href="http://www.ibm.com/developerworks/web/library/wa-aj-dojo/" rel="nofollow noreferrer">This article</a> has a good overview of classes using dojo in Javascript.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload