Show: Delphi C++
Display Preferences

System.TInterfacedObject.AfterConstruction

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure AfterConstruction; override;

C++

virtual void     __fastcall AfterConstruction();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
systobj.h
System TInterfacedObject

Description

Responds after the last constructor executes.

AfterConstruction is called automatically after the object's last constructor has executed. Do not call it explicitly in your applications.

When an instance of TInterfacedObject is allocated, RefCount is incremented to prevent its destruction while processing the constructor. AfterConstruction decrements that RefCount to re-establish the correct reference count after all constructors have executed.

See Also

Personal tools
Previous Versions
Translations