以下程序的执行结果是______。
#include <iostream>
using namespace std;
class base
public:
virtual void who() cout<<"Base Class"<<endl;
;
class Derived1: public Base
public:
virtual void who() cout<<"Derived1 Class"<<endl;
;
class derived2: public Base
public:
virtual void who() cout<<"Derived2 Class"<<endl;
;
int main(int argc, char *argv[ ])
base obj1,*p;
derived1 obj2;
derived2 obj3;
p=&obj1; p->who();
p=&obj2; p->who();
p=&obj3; p->who();
return 0;