Virtual

should I use protected virtuals instead of public virtuals ??
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
Topic archived. No new replies allowed.