Item-35 Consider Alternatives to Virtual Functions
· ☕ 7 min read

Alternatives to virtual functions include the NVI idiom (as an example of the Template Method design pattern) and various forms of the Strategy design pattern.


Item-33 Avoid hiding inherited names
· ☕ 5 min read

Names in derived classes hide names in base classes, which is not desirable in public inheritance. To fix it, employ using declarations or forwarding functions to make hidden names visible again.