Mock tests, Interview questions, Tutorials and Tech news
 
 
Home > Programming / tutorials > Inheritance in javascript

Inheritance in javascript

September 7th, 2010 Vinay Leave a comment Go to comments

In Java Script , you do not see classes as in traditional programming like Java/C++. So does java script supports inheritance ?

Answer : Yes.

Java script uses prototype inheritance instead of classical inheritance. Some more helpful links and post to get better understanding.

http://phrogz.net/js/classes/OOPinJS2.html

http://www.crockford.com/javascript/inheritance.html

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • IndianPad
  • Reddit
  1. No comments yet.
  1. No trackbacks yet.
Get Adobe Flash playerPlugin by wpburn.com wordpress themes