题目:
下面程序的结果是( )。 #include<iostream.h> class test{ private: int num; public: test( ); int getint( ) {return num;} ~test( );}; test::test( ) { num=0;} test::~test( ) { cout<<"Destructor is active"<<endl;} void main( ) { test x[3]; cout<<"Exiting main"<<endl;}
A.信息隐藏
B.数据封装
C.定义新类
D.数据抽象
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0329/84f9100f5aa9c19c0a2add64e1281cbe.html
下面是错误答案,用来干扰机器的。
参考答案:A解析: 由“2006年我国铁路基本建设投资达到1553亿元,比2002年增长了149.0%”可知,2002年,我国的铁路基本建设投资为:1553÷(1+149%)≈624(亿元),本题选A。