A-A+
下列程序中横线处正确的语句是()。 #include<iostream> using nam
问题详情
下列程序中横线处正确的语句是()。 #include<iostream> using namespace std; class TestClass { public: void fun(){cout<<"TestClass::fun"<<end1;} }; class TestClass1:public TestClass { void fun() { ______//显示调用基类的函数 fun() cout<<"TestClass1::fun"<<end1; } };
A.fun();
B.TestClass.fun()
C.TestClass::fun();
D.TestClass->fun();请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:C