3
The fundamental System.Object base class and how its Equals method is used and overridden
lAll classes are subclasses of System.Object
lMethods of System.Object
ØToString – string representation (for output display); by default the name of the object
ØGetHashCode – gets a hash code so object can be looked up in a dictionary (integer value)
ØEquals – returns .T. if current object’s “value” matches value object; used to find objects in collections
ØReferenceEquals – returns .T. if object is the same as argument object (exactly the same object; not just the same value)
ØGetType – returns the type of the object in System.Type
ØMemberwiseClone – copies to another object all data values