コード例 #1
0
ファイル: Program.cs プロジェクト: JarmoLuostarinen/Harkka
 static void Main(string[] args)
 {
     Car car = new Car();
     car.Speed = 300;
     Console.WriteLine("Car speed is: " + car.Speed);
     Console.ReadLine();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: K2218/Demo04
 static void Main(string[] args)
 {
     // create a one car obejct
     Car car = new Car();
     car.Speed = 300;
     car.Height = 5.0;
     Console.WriteLine("Speed is {0}", car.Speed);
     Console.WriteLine("Heigt is {0}", car.Height);
     Console.ReadLine();
 }