Show/Hide Toolbars

XSharp

The OBJECT keyword is a generic type from which all objects in .Net automatically inherit.

 

X# does 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 describes an instance of the class.