LoginSignup
0
0

More than 3 years have passed since last update.

オブジェクト指向c#

Posted at

あらゆる型の継承元クラスをたどっていくと最終的には、System.Objectクラスにたどり着く。

つまりクラス階層の頂点に位置するクラスがobjectクラスになります。
定義の際に、継承元を指定しなかった場合はその継承元であるobjectクラスになります。
以下のコードは同じ意味を持ちます。
class Person
{
static void Main(string[] args)
{
}
}

class Person:Object
{
static void Main(string[] args)
{
}
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0