Writing Classes in Javascript

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Writing classes in Javascript does not give full functionality of an object oriented language, but it at least gives data hiding

Statistics

  • Total Hits - 17983

  • Total Votes - 100 votes

  • Vote Up - 43 votes

  • Vote Down - 57 votes

  • Domain - www.microcyb.com

  • Category - Java Script/Development

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-14 02:30:10

Description

Writing classes in Javascript doesn't give full functionality of an object oriented language, but it at least gives data hiding and encapsulation which are very useful, especially when javascript is not a strongly typed language.

It is very useful in cases when you need to handle multiple objects, instead of having arrays for all kinds of variables and then managing those arrays in methods you can just write a class to handle one object and then make many instances of that class. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements