The Object class is the ultimate base class for all .NET types. It provides a set of fundamental methods that can be overridden by derived classes. The class defines one public constructor that initializes a new instance of the Object class.
public Object();
Creating an instance of Object:
using System;
class Program
{
static void Main()
{
// Create a new Object instance
Object obj = new Object();
// Display its type
Console.WriteLine($"Type: {obj.GetType()}");
}
}