Can some one please help what the order of destruction is when I am using virtual functions. Does it start with the base class and then derived class?
The destruction order is the construction order backwards. I've recently made a small tool to display the construction order for any hierarchy. Look here:
In the diagrams, the nodes with the smaller numbers are constructed first and destructed last.