标签:base public oid 解析 span prim virtual bsp pre
练习15.23
1 class Base { 2 public: 3 virtual int fcn(); 4 }; 5 6 class D1 : public Base { 7 public: 8 int fcn(); 9 virtual void f2(); 10 }; 11 12 class D2 : public D1 { 13 public: 14 int fcn(int); 15 int fcn(); 16 void f2(); 17 }; 18 跟bp2有关的需要重新解析:bp2->fcn(); 运行的是D1::fcn
标签:base public oid 解析 span prim virtual bsp pre
原文地址:http://www.cnblogs.com/wuyinfenghappy/p/7532845.html