RAD Studio
ContentsIndex
PreviousUpNext
E2045: Destructor name must match the class name (C++)

In a C++ class, the tilde (~) introduces a declaration for the class destructor. 

The name of the destructor must be same as the class name. 

In your source file, the ~ preceded some other name.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!