TObject::~TObject - C++ Builder

C++ Builder 参考手册 ➙ System ➙ TObject ➙ ~TObject


头文件:#include
命名空间:System
函数原型:

__fastcall virtual ~TObject(void);

System::TObject::~TObject 是 System::TObject 的析构函数。

参数:

返回值:

  • C++ 需要用 delete 来销毁对象,会自动调用析构函数。
  • C++ 不要用 Free 方法销毁对象,Free 方法是给 Delphi 使用的,C++ 要用 delete。

参考:

  • System::TObject::TObject
  • System::TObject::AfterConstruction
  • System::TObject::BeforeDestruction
  • System::TObject::Free
  • System::TObject
  • VCL 类继承关系

C++ Builder 参考手册 ➙ System ➙ TObject ➙ ~TObject

你可能感兴趣的:(TObject::~TObject - C++ Builder)