来自于effective C++ 条款35。 如果是public继承父类,父类的private函数不是对派生类不可见么?为啥还可以重新定义父类的private virtual函数呢?
ringa_lee
Private virtual has been called in the parent class. It only needs to be redefined in the subclass, without calling, For specific usage, please refer to the reading notes here which are explained in detail: http://www.cppblog.com/tiandejian/arc...
Private virtual has been called in the parent class. It only needs to be redefined in the subclass, without calling,
For specific usage, please refer to the reading notes here which are explained in detail:
http://www.cppblog.com/tiandejian/arc...