试题详情

在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没有