BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Eclipse for Spring
  2. MVVM Pattern
  3. Eclipse RCP
  4. Silverlight/WP7
  5. Eclipse Plug-ins
  1. BIRT 3.7
  2. Ajax
  3. Eclipse
  4. jQuery Selectors
  5. Spring Config.

Link Details

Link 741711 thumbnail
User 974767 avatar

By david_shariff
via davidshariff.com
Published: Feb 09 2012 / 01:07

In this post, I am going to introduce to you 3 different ways of how you can implement inheritance in JavaScript, the prototypal, pseudoclassical and functional patterns. You will see inheritance implemented in languages such as Java by allowing a class to inherit state and behavior from a superclass, where each superclass can have many subclasses. This means that in Java an object is an instance of a class, which can inherit other classes. Now in JavaScript, being prototypal by nature, an object can inherit from an object.
  • 9
  • 0
  • 400
  • 611

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)