Bestcomy.net blog

Coding for funny

导航

JavaScript and Object Oriented Programming (OOP)

Posted on 2004-08-18 15:35  bestcomy  阅读(736)  评论(0编辑  收藏  举报

JavaScript is an excellent language to write object oriented web applications. It can support OOP because it supports inheritance through prototyping as well as properties and methods. Many developers cast off JS as a suitable OOP language because they are so used to the class style of C# and Java. Many people don't realize that JavaScript supports inheritance. When you write object-oriented code it instantly gives you power; you can write code that can be re-used and that is encapsulated.

From: http://www.javascriptkit.com/javatutors/oopjs.shtml