Exemple #1
0
        static void Main(string[] args)
        {
            Town one    = new Rusian.Moscow();
            Town second = new Ukraine.Kiev();
            Town thert  = new USA.NewYork();

            Comparison.ComparisonPopulation(one, second, thert);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Ukraine.Kiev ob1 = new Ukraine.Kiev(2850000);
            USA.NewYork  ob2 = new USA.NewYork(8400000);
            Japan.Tokio  ob3 = new Japan.Tokio(12800000);

            Console.WriteLine("The population of Kiev is {0} inhabitants.\n", ob1.Population);
            Console.WriteLine("The population of NewYork is {0} inhabitants.\n", ob2.Population);
            Console.WriteLine("The population of Tokio is {0} inhabitants.\n", ob3.Population);

            Console.ReadKey();
        }