using System;
using System.ComponentModel.DataAnnotations;
namespace Chap3
{
class Car
{
public string name;
public int seats = 4;
}
class MainClass
{
static void Main()
{
Car mycar1 = new Car();
Car mycar2 = new Car();
//インスタンス
Console.WriteLine(mycar1 == mycar2);
mycar1.name = "メイン";
mycar2.name = "サブ";
Console.WriteLine(mycar1.name);
Console.WriteLine(mycar2.name);
}
}
}