cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Virtual
Virtual
Sep 23, 2013 at 7:43pm UTC
gautamreloaded
(31)
should I use protected virtuals instead of public virtuals ??
Sep 23, 2013 at 7:50pm UTC
Cubbi
(4774)
Best practice is actually private virtuals unless the overriders are expected to call into the base versions, in which case they have to be protected. See
http://www.gotw.ca/publications/mill18.htm
for example.
Last edited on
Sep 23, 2013 at 7:51pm UTC
Topic archived. No new replies allowed.