有如下程序: include<iostream> using namespace std; class Base { private: void funlconst{tout<<”funl”;} protected: void fun2const{tout<<”fun2”;} public: void fun3const{cout<<”fhll3”;} }; class Derived:protected Base { public: void fhn4const{cout<<”filn4”;} }; int main { Derived obj; obj.funl;//① obj.fun2;//② obj.furd;//③ obj.fun4;//④ return U: } 其中有语法错误的语句是()。

A.①②③④ B.①②③ C.②③④ D.①④

时间:2023-09-27 10:07:16

相似题目