help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TObject

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

Base class of all classes.

Declaration

Source position: objpash.inc line 142

type TObject = class

public

  constructor Create;

  

TObject Constructor

  destructor Destroy; virtual;

  

TObject destructor.

  function newinstance; virtual;

  

Allocate memory on the heap for a new instance

  procedure FreeInstance; virtual;

  

Clean up instance and free the memory reserved for the instance.

  function SafeCallException(); virtual;

  

Handle exception object

  procedure DefaultHandler(); virtual;

  

Default handler for integer message handlers.

  procedure Free;

  

Check for Nil and call destructor.

  function InitInstance();

  

Initialize a new class instance.

  procedure CleanupInstance;

  

Finalize the class instance.

  function ClassType;

  

Return a "class of" pointer for the current class

  function ClassInfo;

  

Return a pointer to the type information for this class.

  function ClassName;

  

Return the current class name.

  function ClassNameIs();

  

Check whether the class name equals the given name.

  function ClassParent;

  

Return the parent class.

  function InstanceSize;

  

Return the size of an instance.

  function InheritsFrom();

  

Chck wether class is an ancestor.

  function StringMessageTable;

  

Return a pointer to the string message table.

  procedure Dispatch();

  

Dispatch an integer message

  procedure DispatchStr();

  

Dispatch a string message.

  function MethodAddress();

  

Return the address of a method

  function MethodName();

  

Return the name of a method.

  function FieldAddress();

  

Return the address of a field.

  procedure AfterConstruction; virtual;

  

Method called after the constructor was called.

  procedure BeforeDestruction; virtual;

  

Method called before the destructor is called.

  procedure DefaultHandlerStr(); virtual;

  

Default handler for string messages.

  function GetInterface();

  

Return a reference to an interface

  function GetInterfaceByStr();

  

  function GetInterfaceEntry();

  

  function GetInterfaceEntryByStr();

  

  function GetInterfaceTable;

  

end;

Inheritance

TObject

  

Base class of all classes.

Description

TObject is the parent root class for all classes in Object Pascal. If a class has no parent class explicitly declared, it is dependent on TObject. TObject introduces class methods that deal with the class' type information, and contains all necessary methods to create an instance at runtime, and to dispatch messages to the correct method (both string and integer messages).

See also

TClass

  

Class of TObject.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505