阅读下面代码: class B { public: virtual void Fun(){} } class D: public B { public: void Fun(){} } D dd B* pb = &dd D*
发布于 2022-03-03 17:32:25
阅读下面代码:
class B { public: virtual void Fun(){} } class D: public B { public: void Fun(){} } D dd B* pb = &dd D* pd = &dd pb->Fun() pd->Fun()
上述例程调用的Fun函数顺序为()
登录后免费查看答案
关注者
0
被浏览
40