题目内容

阅读以下程序class Base{public static void F(){ Console.Write(“Base “);}}class Derived:Base{new protected static void F(){Console.Write(“Derived”);}}class MoreDerived:Derived{public static void Main(){ F();}}以上程序运行后的结果是()

A. Base
B. Derived
C. Base Derived
Derived Base

查看答案
更多问题

阅读以下程序class Base{public static void F(){ Console.Write(“Base “);}}class Derived:Base{new protected static void F(){base.F();Console.Write(“Derived”);}}class MoreDerived:Derived{public static void Main(){ F();}}以上程序运行后的结果是()

A. Base
B. Derived
C. Base Derived
Derived Base

以下不能与virtual同时使用的修饰符是()

A. static
B. public
C. protected
D. internal

以下不能与virtual同时使用的修饰符是()

A. abstract
B. public
C. protected
D. internal

以下不能与virtual同时使用的修饰符是()

A. override
B. public
C. protected
D. internal

答案查题题库