文档详情

川大《面向对象程序设计(1)》18春在线作业2.docx

发布:2018-05-09约3.77千字共8页下载文档
文本预览下载声明
川大《面向对象程序设计(1)》18春在线作业21、D 2、B 3、C 4、A 5、D 一、单选题共30题,60分1、有如下类和对象的定义:class Constants{public: static double getPI(){return 3.1416;}};Constants constants;下列各组语句中,能输出 3.1416 的是( )。Acoutconstants-getPI();和 coutConstants::gerPI();Bcoutconstants.getPI();和 coutConstants.getPI();Ccoutconstants-getPI();和 co
显示全部
相似文档