问题
单项选择题
下列程序中划线处正确的语句是( )。
# include <iostream>
using namespace std;
class Base
public:
void fun()cout<<"Base:: fun" <<endl;
;
class Derived:public Base
void fun()
______ ∥显式调用基类的函数fun()
cout<<"Derived:: fun"<<endl;
;
A.fun();
B.Base.fun();
C.Base::fun();
D.Base- >fun();
答案
参考答案:C