若有如下程序:

includeusingnamespaeestd;classTestClass{public:voidwho(){cout$amp;};classTestClassl:publicTestClass{public:voidwho(){cout$amp;intmain(){TestClass*P;TestClasslobj1;p=&obj1;p->who();retum0;}则该程序运行后的输出结果是()。 A.TestClassl B.TestClass C.0 D.无输出

时间:2024-02-29 10:26:15

相似题目