namespace 值类型和引用类型的区别
{
public class Car
{
public int speed { get; set; }
public string carName { get; set; }
public Car(int speed, string carName)
{
this.speed = speed; this.carName = carName;
}
}
public class Program
{
static void Main(string[] args)
{
Car a = new Car(100, "宝马");
Car b = new Car(200, "奔驰");