C++ Tips: Inheritance


Table of Contents


Preventing subclassing
Friends, derived classes, and limited access rights
Name scopes and inheritance
What is protected inheritance?
Using inheritance: subtyping and subclassing
Cannot access inherited protected members via base ptr
Example of protected inheritance
Classes that cannot be derived from
Private inheritance versus delegation (forwarding)
Multiple inheritance and same signature virtual functions
virtual inheritance with common ancestry
dominance and virtual inheritance
virtuals and mixin classes
delegation
pros and cons of using virtual inheritance
overview of private inheritance
what use multiple inheritance?
a case for multiple inheritance
simulating multiple inheritance
virtual bases with no data
thoughts on protected inheritance
virtual inheritance and non-default constructors

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.