RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::Equals Method

Checks if the current instance and the parameter are equal.

Pascal
function Equals(Obj: TObject): Boolean; virtual;
C++
virtual Boolean Equals(TObject Obj);

The function has one parameter, Obj of type TObject.  

By default, the System::TObject::Equals method shows if the addresses corresponding to the object and the parameter are identical. Returns a boolean value that represents the equality between the two addresses.

Note: System::TObject::Equals is supposed to be overridden in user derived classes, in order to provide consumer objects with an equality determining function.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!