C++ Standard ISO/IEC 14882:2003(E)


The access rules (clause 11) for a virtual function are determined by its declaration and are not affected by the rules for a function that later overrides it.

当一个子类函数通过基类的指针调用时,访问权限取决于基类对该函数的声明。

posted @ 2013-04-28 14:51  aswater  阅读(212)  评论(0编辑  收藏  举报