Non-Virtuals Call Protected Non-Overloaded Virtuals idiom

I

ittium

Group,
My doubt is regarding Public Overloaded Non-Virtuals Call Protected
Non-Overloaded Virtuals idiom, defined as part of following FAQ.
http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.3.

Here to avoid hiding of overloaded (virtual/non-virtual) functions it is
suggested that these functions be made non-virtual (if originally
virtual) and call non-overloaded virtual versions providing similar
functionality.

I am not sure how this is solving the issue, since although not virtual
now, overloaded function will still be inherited by derived class and
derived class still can hide the function by defining overloaded
function with the same name.
thanks
Ittium
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top