Redundant to inherit from Object in C#?

后端 未结 7 896
后悔当初
后悔当初 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:16

    Yes, everything ultimately inherits from an object if defined as class. Leave the explicit inheritance out of your code.

提交回复
热议问题