Do you know that? Create a contract or terms and make your clients stick to it. next

Explain in what order a destructors is called.

Destructors are called in reverse order of constructors. Destructor of most derived class is called followed by its parent's destructor and so on till the topmost class in the hierarchy.