Languages typically do not require a class to declare inheritance from Object because the inheritance is implicit. Because all classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system. Derived classes can and do override some of these methods, including:
- Equals – Supports comparisons between objects.
- Finalize – Performs cleanup operations before an object is automatically reclaimed.
- GetHashCode – Generates a number corresponding to the value of the object to support the use of a hash table.
- ToString – Manufactures a human-readable text string that … Click here to continue reading.