填空题

下列程序的输出结果为2,请将程序补充完整。
#inelude<iostream·h>
using namespace std;
class Base

public:
______ void fun( )cout<<1;
;
class Derived: public Base

pbulic:
void fubn( )cout<<2;
;
int main( )
Base*P=new Derived;
P→fun( );
delete P;
return 0;

【参考答案】

virtual