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

admin2009-01-15  32

问题 下列程序中划线处正确的语句是(    )。#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://jikaoti.com/ti/4Wd0FFFM
0

最新回复(0)