摘要
针对在面向对象的程序设计中 ,如何建立对象之间特别是不同类型对象之间的数据结构 ,如何处理数据等问题 ,研究了面向对象程序设计技术中的多态性 .提出了应用多态程序设计技术建立对象数据结构和数据处理的方法 ,即在不同类的对象之间建立连接关系 ,构成链表、树、图等数据结构 .处理对象节点时 ,根据不同的对象自动调用不同的处理代码 .
In view of the problem of how to create the data structure am ong objects, especially different class objects, and how to process data, this p aper studies the polymorphism of oriented object programming, puts forward the m ethod by which we can create the data structure among objects and process data a s well as create the linking relation among different object, constructs data st ructure, such as link list, tree, graph etc, resorts to corresponding code segme nt according to the type of object when processing the node. The important code segments is given in JAVA language.
出处
《大庆石油学院学报》
CAS
北大核心
2003年第3期66-69,共4页
Journal of Daqing Petroleum Institute
基金
河北省自然科学基金资助项目 ( 6 0 2 4 0 5)