コード例 #1
0
ファイル: Program.cs プロジェクト: makmen/itstep-C-
 static void Main(string[] args)
 {
     Moscow firstCity = new Moscow(10000000);
     Minsk secondCity = new Minsk(2000000);
     Kiev thirdCity = new Kiev(2800000);
     Console.WriteLine("The largest population is in {0} {1} people", city, population);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: slmtik/IT-Step
 static void Main(string[] args)
 {
     London l = new London();
     Moscow m = new Moscow();
     Berlin b = new Berlin();
     Console.WriteLine(l > b);
     Console.WriteLine(m == l);
 }