[EDIT: I went through relevant questions on Stackoverflow, but they weren’t helpful.] I was thinking about writing an algorithm (a graph traversal algorithm) to determine the order of execution of the constructors in a given class-hierarchy (in C++). This is how I was modelling the problem: I am assuming there is only a default constructor ..

Read more