CodePudding user response:
Generally do not need to manually call the destructor, why want to pass parameters?CodePudding user response:
You can add a private state variables in the class, the destructor of the concludes that the state variables do different actions,CodePudding user response:
C + + destructors can not overloaded, first tell me about your needs,