找不到类型或命名空间名称“Car1”(是否缺少 using 指令或程序集引用?)
帮助看一下下面的代码哪里有错误啊?我没找出来.using System;
namespace Car
{
class Car
{
public string color;
public float weight;
private DateTime reasedate;
public static int count;
public void Run()
{
Console.WriteLine("我正在路上行驶...");
}
public static void Return()
{
Console.WriteLine("Press any key to continue ...");
Console.ReadLine();
}
}
class ClsCar
{
public static void Main(String[] args)
{
Car car1 = new Car();
Car car2 = new Car();
Car1.Run();
Car2.Run();
Car.Return();
}
}
}