Inheritance in case of constructors and destructors in base and derived classes