在C#中,以下代码输出结果是:()
static void Main(string[] args)
{
Commodity cake = new Commodity();
cake.name = " 蛋糕 ";
cake.price = 18;
cake.productionDate = DateTime.Parse("2018-9-18");
cake.factory = " 武汉美食食品 ";
cake.expire = 90;
Console.WriteLine(cake.name);
}
Acake.name = " 蛋糕 ";
B18
C蛋糕
D没有
相关试题
-
在C#中,以下代码输出结果是:() static void Main(string[] args) { Commodity cake = new Commodity();
-
在C#中,以下代码运行结果依次为() static void Show() { Console.WriteLine("大家好!&quo
-
{ Console.Write("B"); } public new void Fun()
-
static void Main(string[] args) { Hero hero = new Hero("亚瑟")
-
ublic new void Exam() { Console.WriteLine("大学生有选择考试科目的权利");