The destructor for this C++ class is protected or private, and can't be accessed here to destroy the class.
If a class destructor is private, the class can't be destroyed, and thus can never be used. This is probably an error.
A protected destructor can be accessed only from derived classes.
This is a useful way to ensure that no instance of a base class is ever created, but only classes derived from it.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|