<<< Mistakes and pain caused by careless overriding of virtual and non-virtual functions | Index | >>> |
Think about interface and implementation separately.
For real modularity, provide a pure interface and a separate function or class for producing instances.
Always make destructors virtual.
Don't redefine non-virtual functions.
<<< Mistakes and pain caused by careless overriding of virtual and non-virtual functions | Index | >>> |