摘要
C++语言是一种使用非常广泛的计算机编程语言,它支持过程化程序设计、数据抽象、面向对象程序设计、制作图标等多种程序设计风格。在C++面向对象的程序设计中,多继承使用频繁,然而使用多继承容易出现二义性问题。本文结合自己这几年的教学经验,通过分析教材和一些参考书中的二义性例题,总结出C++中容易出现二义性的情况及解决方法。
C+ + language is a very extensive use of computer programming language, and it supports the process of programming, data abstraction, object-oriented programming, the production of generic icons, etc. a variety of procedures, such as programming style. In C + + Object-Oriented programming, the use of multi- pie inheritance, multiple inheritance is frequent, however prone to the ambiguous issues. In this paper, with the author's teaching experience over the past few years, through the analysis of reference materials and some ambiguity in the example, we summed up C + + in an easy situation of ambiguity.
出处
《科技广场》
2009年第5期136-138,共3页
Science Mosaic
关键词
C++语言
路径
虚基类
二义性
面向对象
C++ Language
Path
Virtual Base Class
Ambiguity
Object- Oriented