[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TInterfacedObject

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TObjectdescendent implementing the IUnknowninterface

Declaration

Source position: objpash.inc line 190

type TInterfacedObject = class(TObject)

public

  procedure AfterConstruction; override;

  

Handle reference count properly.

  procedure BeforeDestruction; override;

  

Check reference count.

  function NewInstance; override;

  

Create a new instance

  property RefCount: LongInt; [r]

  

Return the current reference count

end;

Inheritance

TInterfacedObject

  

TObjectdescendent implementing the IUnknowninterface

|

TObject

  

Base class of all classes.

Description

TInterfacedObjectis a descendent of TObjectwhich implements the IUnknowninterface. It can be used as a base class for all classes which need reference counting.

See also

IUnknown

  

Basic interface for all COM-based interfaces

TObject

  

Base class of all classes.