摘要: 假设我们有类 A 、类 B 和类 Test ,类 Test 具有类 A 和类 B 的全部属性,并且它们都具有 temp 属性,现在我们需要在类 Test 中实现对 temp 属性的设定与读取,故写出以下程序: ~~~~ include class Base{ public: int temp; }; 阅读全文
posted @ 2018-02-09 22:10 Zackary丶Liu 阅读(286) 评论(0) 推荐(0)