Multiple choice technology web 2.0

What’s the top .NET class that everything is derived from?

  1. System.Object

  2. System.string

  3. System.Stringbuilder

  4. System.Clone

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In the .NET Framework, System.Object is the ultimate base class from which all other classes derive. Every class in .NET, either directly or indirectly, inherits from System.Object. This provides common functionality like ToString(), Equals(), GetHashCode(), and MemberwiseClone() to all objects. System.String and System.StringBuilder are derived classes, and System.Clone is not a base class but rather a method that objects can implement via ICloneable interface.

AI explanation

In .NET, System.Object is the root of the entire type hierarchy — every class, whether built-in or user-defined, ultimately derives from it directly or indirectly. System.String and System.StringBuilder are themselves classes derived from Object, not the base of everything, and there is no such top-level class as System.Clone.