J
Jimmy
I was browsing the C++ FAQ Lite the other day when I came accross
question #23.4
(http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.4).
The question was "When should someone use private virtuals?", and the
author answered with "almost never, but there are reasons". So, I am
asking, what are the reasons. It seems illogical to have one; the
point of a virtual function is to be overriden in a derived class, and
the derived class cannot touch anything that is private in the base
class. Has anyone ever used a private virtual function before?
question #23.4
(http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.4).
The question was "When should someone use private virtuals?", and the
author answered with "almost never, but there are reasons". So, I am
asking, what are the reasons. It seems illogical to have one; the
point of a virtual function is to be overriden in a derived class, and
the derived class cannot touch anything that is private in the base
class. Has anyone ever used a private virtual function before?