Home > Back-end >  C class type, how to destructor and parameters of the object?
C class type, how to destructor and parameters of the object?

Time:11-04

In c + + class type, how to destructor and parameters of the object?

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,
  • Related