BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. HTML5 Canvas
  2. Ruby
  3. iPhone/iPad
  4. Spring Web Flow
  5. REST
  1. jQuery Selectors
  2. Spring Config.
  3. Java
  4. Ajax
  5. Java Concurrency

Link Details

Vote up, vote down. It doesn't matter which - just vote! Login and vote now.
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
  • 407
  • 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)