var AObject: TObject; begin AObject:=TObject.Create; ShowMessage(AObject.ClassName); AObject.Free; end;