coding
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.
Item-32 Make sure public inheritance models "Is-A"
· β 3 min read
Everything that applies to base classes must also apply to derived classes in public inheritance, for every derived class object is a base class object.
Item-31 Minimize compilation dependencies between files
· β 9 min read
To minimize compilation dependencies, depend on declarations instead of definitions via techniques such as Handle classes and Interface classes.
Item-30 Understand ins and outs of inlining
· β 7 min read
Limit most inlining to small, frequently called functions to facilitate debugging and binary upgradability, minimize potential code bloat, and maximize the chances of greater program speed.