首页 | 本学科首页   官方微博 | 高级检索  
     

用面向对象方法实现类属表
引用本文:王燕. 用面向对象方法实现类属表[J]. 青岛大学学报(自然科学版), 1998, 11(3): 7-11
作者姓名:王燕
作者单位:青岛大学计算机系
摘    要:本文用面向对象技术来处理用传统编程方法无法解决的类属问题。通过对数据类型和数据结构的分析,找出解决类属问题的难点,提供了两种解决方案。一种是运用两面对象的一般思路,通过对象指针之间的强类型转换实现;另一种是直接使用面向对象系统提供的模板工具来实现,面和对象技术的引入,改变了我们考虑和解决问题的方法和思路,使以往难以解决的复杂问题变得简单。本文使用C++这个具体的面向对象语言来对类属问题进行具体描述

关 键 词:面向对象技术 类属 数据结构 数据类型

GENERIC LINK LIST REALIZED BY OBJECT ORIENTED TECHNIQUE
Wang Yan. GENERIC LINK LIST REALIZED BY OBJECT ORIENTED TECHNIQUE[J]. Journal of Qingdao University(Natural Science Edition), 1998, 11(3): 7-11
Authors:Wang Yan
Abstract:This paper uses the object oriented technique to deal with the generic problem which is not able to be resolved by traditionally programming method. We found out the difficulties to resolve generic problem and gave two ways by analysis of data type and data structure. One uses the general thinking of object oriented to realize the generic list by making data type transfer between the pointer of objects. The another method to realize generic list is directly using template tool offered by object oriented system. By introducing of object oriented technique, we change the thinking method and simplify this difficult problem. This paper uses the object oriented programming language C++ to describe the generic problem.
Keywords:object oriented technique  generic list  template  generic data structure
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号