试题详情

C#中下列代码运行结果是() public abstract class A { public A() { Console.Write("A"); } public virtual void Fun() { Console.WriteLine("C"); } } public class B : A { public B() { Console.Write("B"); } public new void Fun() { Console.WriteLine("D"); } } class Program { static void Main(string[] args) { A a = new B(); } }

AABCD

BBDAC

CAB

DBA