Redundant to inherit from Object in C#?

后端 未结 7 899
后悔当初
后悔当初 2021-01-07 16:32

As stated above, is it redundant to inherit from Object in c#? Do both sets of code below result in equivalent objects being defined?

class TestClassUno : Ob         


        
7条回答
  •  醉话见心
    2021-01-07 17:18

    MSDN : Object class : Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.

    Check this research : inherits from object? An investigation into how.

    enter image description here

提交回复
热议问题