有下列程序: #include<iostream> using namespace std; class TestClass { public: virtual void fun1() { cout<<"fun1TestClass"; } virtual void fun2() { cout<<"fun2TestClass"; } }; class TeStClaSS1:public TestClass { void fun() { cout<<"fun1TestClass1"; } void fun2(tnt x) { cout<<"fun2TestClass1"; } }; int main() { TeStClass obj1,*p; TestClaSS1 obj2; p=&obj2; p->fun1(); p->fun2(); retrn 0; } 执行后的输出结果是( )。
A.fun1TeStClass1 fun2TeStClass
B.fun1TestClass1 fun2TestClass1
C.fun1TeStClass fun2TeStClass
D.fun1TestClaSSfun2TestClaSS1