文件名称:11
- 所属分类:
- matlab例程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 冰*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
/*定义一个基类Animal,有私有整型成员变量age,构造其派生类dog,
在其成员函数SetAge(int n)中直接给age赋值,看看会有什么问题,
age改为公有成员变量,还会有问题吗?-/* Define a base class Animal, a private integer member variables age, derived class constructor of its dog, its member function SetAge (int n) directly to the age assignment, to see what the problem, age changed to public member variables , there will be problems?
在其成员函数SetAge(int n)中直接给age赋值,看看会有什么问题,
age改为公有成员变量,还会有问题吗?-/* Define a base class Animal, a private integer member variables age, derived class constructor of its dog, its member function SetAge (int n) directly to the age assignment, to see what the problem, age changed to public member variables , there will be problems?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
11.dsp