class class1
{
Public virtual void test(){}
}
Class class2: class1
{
Public overrice void test()
{
Console.Write(“class2”);
}
}
Class class3: class2
{
Public override void test()
{
Console.Write(“class3”);
}
}
则下列语句的输出是什么?()
Class2 x = new class3(); x.test();
A.class3 class2
B.class3
C.class2 class3
D.class2
答案不对?请尝试站内搜索