I am reading into Scott Meyers book Effective c++. For constructors he recommends initialization of object data in a specific order.
- Base class before derived class
- Within a class data members initialized in the order which the are declared.
Appearantly not following these rules can lead to obscure behavioral bugs ... However he does'nt give any examples or go into details.
Can you give an example of what kind of bugs can occur?