问题
填空题
若有以下程序:
#include <iostream>
using namespace std;
class Basepublic:
void who() cout<<"Base"<<end1;
;
class Derivedl: public Basepublic:
void who() cout<<"Derived"<<end1;
;
int main() Base *p;
Derived1 obj1;
p=&obj1;
p->who();
return 0;则该程序运行后的输出结果是 【9】 。
答案
参考答案:Derived