下列程序中划线处正确的语句是( )。#include <iostream>using namespace std;class Base{public:void fun() { cout<<"Base:: fun"<<end1; }};class De

admin2009-01-15  34

问题 下列程序中划线处正确的语句是(    )。#include <iostream>using namespace std;class Base{public:void fun() { cout<<"Base:: fun"<<end1; }};class Derived: public Base{    void fun()    {    _______________________ //显试调用基类的函数 fun()        cout <<"Derived:: fun"<<end1;};

选项 A、fun();
B、Base. fun();
C、Base:: fun();
D、Base->fun();

答案4

解析
转载请注明原文地址:https://kaotiyun.com/show/qjkp777K
0

最新回复(0)