·Object
is the root class of the C# library
·Object’s
members:
–public
Object();
–public
virtual Boolean Equals(Object obj);
•Returns true
if obj and invoker handles point to the same body.
–public
virtual Int32 GetHashCode();
•Return value
identifies object instance.
–public Type
GetType();
•Type object
supports RTTI – see next page
–public
virtual String ToString();
•Returns
namespace.name
–protected
virtual void Finalize();
•Called to
free allocated resources before object is garbage collected.
–protected
Object MemberwiseClone();
•Performs
shallow copy
•To have your class instances perform deep copies you need to implement
the ICloneable interface.