首页 > 试题广场 >

下列哪个是 C# 中运行时常量的定义方法()

[单选题]
下列哪个是 C# 中运行时常量的定义方法()
  • public static readonly int Port = 47896
  • public const int Port = 47896
  • public static const int Port = 47896
  • public static sealed int Port = 47896
A,是运行时常量
B是编译时常量
因此选A

发表于 2017-02-16 18:02:51 回复(0)