C++里面的private virtual函数

来源:互联网 发布:国内免费数据库 编辑:程序博客网 时间:2024/05/13 01:46

References:

  1. http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.4
  2. http://www.gotw.ca/publications/mill18.htm
  3. http://www.diybl.com/course/3_program/c++/cppsl/2007104/76001.html

At the first sight, private function in the base class seems confusing, but it has its real application, especially in TEMPLATE PATTERN, and virtuality has nothing to do with accessibility, which is described in the above articles.


原创粉丝点击