Premature optimization is the root of all evil.
– Donald Knuth
On the other hand, we cannot ignore efficiency.
– Jon Bentley
In general, a class is constructed from a lattice of base classes. Such a class lattice is often called a class hierarchy. We try to design classes so that users need not be unduly concerned about the way a class is composed out of other classes. In particular, the virtual ...