なぜvar b = new B()最初にstatic B().ctorを入力し、インスタンスコンストラクターが(およびthan )するように、その逆ではないのですか?static A() .ctorpublic A()public B()
public class A
{
static A() {}
public A() {}
}
public class B : A
{
static B() {}
public B() {}
}
なぜvar b = new B()最初にstatic B().ctorを入力し、インスタンスコンストラクターが(およびthan )するように、その逆ではないのですか?static A() .ctorpublic A()public B()
public class A
{
static A() {}
public A() {}
}
public class B : A
{
static B() {}
public B() {}
}