Closed lihaozhehw closed 5 years ago
The purpose of the destructor is to do the corresponding cleanup when the class is released, so that the coder does not forget the cleanup of the resource, so if there is a constructor, there must be a destructor.
The purpose of the destructor is to do the corresponding cleanup when the class is released, so that the coder does not forget the cleanup of the resource, so if there is a constructor, there must be a destructor.