The base class type that is ancestor to all other classes
type TObject = class
destructor Destroy; virtual;
The TObject type defines the base class type. It is the oldest grandparent of all classes - every class is ultimately derived from TObject.
Because of this, every object inherits the methods of TObject.
The TObject methods fall into two categories - class and non-class. When prefixed by the keyword Class, a method may be called in both an object of the class, and in the class itself. Such a static method cannot access any class fields because a class has no data itself - only instantiated classes - objects - have data.
Example code : Using TObject methods inherited in a TForm subclass
begin // The unit form was derived from TObject. // So we can use methods of TObject:
ShowMessage('Form1 object class name = '+
ShowMessage('Form1 object class parent name = '+
ShowMessage('Form1 object instance size = '+
IntToStr(Form1.InstanceSize)); // And now on TObject itself
ShowMessage('TObject class name = '+ TObject.ClassName);
ShowMessage('TObject instance size = '+