Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Non-Virtuals Call Protected Non-Overloaded Virtuals idiom

Reply
Thread Tools

Non-Virtuals Call Protected Non-Overloaded Virtuals idiom

 
 
ittium
Guest
Posts: n/a
 
      12-15-2011
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-lit....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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternatives to using virtuals for cross-platform development greek_bill C++ 6 06-08-2007 09:47 PM
Accessing virtuals in base class Jo C++ 14 06-06-2007 10:36 PM
Overloading, hiding, :: and virtuals Ole Nielsby C++ 4 09-28-2006 11:20 PM
Hiding rule and pure virtuals Thomas Kowalski C++ 3 08-24-2006 05:35 PM
Bins and virtuals Mark Horrocks ASP .Net 1 08-31-2004 09:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57