现在的位置: 首页 > 综合 > 正文

JavaScript and Object Oriented Programming (OOP)

2011年02月12日 ⁄ 综合 ⁄ 共 472字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.