Menu
×
×
正确
class Car
{
public string model;
@(6) @(5)
{
model = "Mustang";
}
static void Main(string[] args)
{
@(3) Ford = @(3) @(6)
Console.WriteLine(Ford.model);
}
}
class Car
{
public string model;
public Car()
{
model = "Mustang";
}
static void Main(string[] args)
{
Car Ford = new Car();
Console.WriteLine(Ford.model);
}
}
不正确
点击 此处 重试 正确
下一题 ❯class Car { public string model;w3exercise_input_no_0w3exercise_input_no_1{ model = "Mustang"; } static void Main(string[] args) {w3exercise_input_no_2Ford =w3exercise_input_no_3w3exercise_input_no_4Console.WriteLine(Ford.model); } } |