摘要
面向对象程序设计思想是现在程序设计的主流思想,它通过给程序中加入扩展语句,把函数"封装"进编程所必需的"对象"中,使得复杂的工作条理清晰、编写容易。有着广泛应用的XML也必包含这一思想。文中首先详细介绍了XML的起源与特点,接着对面向对象语言特性进行了简单的阐述:如抽象、封装、继承、多态性,最后通过XML实例与面向对象语言的特性相结合来着重分析XML的面向对象的语言特性。因此,通过使用面向对象程序设计的思想与方法,能够更加灵活方便地构造和设计XML。
The object-oriented programming design concept is popular in programming mainstream thought,it added to the program through the function expansion statements,"packaging"into a programming required"object",makes the complex work clear and written easy.XML,which is used very widely should contain this thought.First introduce the origins and characteristics of XML,then elaborate the object-oriented language characteristic,such as abstract,encapedation, inheritance, polymorphism,and finally through the combination of XML example and the characteristics of object - oriented language to focus on analysis of the XML object - oriented language characteristie. Therefore, be able to conveniently construct and design XML by the object - oriented programming design thoughts and methods.
出处
《计算机技术与发展》
2010年第1期54-57,共4页
Computer Technology and Development
基金
国家技术创新基金项目(08C26214411198)
关键词
XML
面向对象
抽象
封装
继承
多态
XML
object-oriented
abstract
encapedation
inheritance
polymorphism