示例#1
0
        static void Main(string[] args)
        {
            People example = new People();
            example.Talk();

            People fin1 = new Finn("Matti", 23, "Finland");
            Console.WriteLine(fin1.Name + " " + fin1.Age + " " + fin1.Country);
            fin1.Talk();

            People swe1 = new Swedish("Oliver", 18, "Sweden");
            Console.WriteLine(swe1.Name + " " + swe1.Age + " " + swe1.Country);
            swe1.Talk();
        }
示例#2
0
        static void Main(string[] args)
        {
            People example = new People();

            example.Talk();

            People fin1 = new Finn("Matti", 23, "Finland");

            Console.WriteLine(fin1.Name + " " + fin1.Age + " " + fin1.Country);
            fin1.Talk();

            People swe1 = new Swedish("Oliver", 18, "Sweden");

            Console.WriteLine(swe1.Name + " " + swe1.Age + " " + swe1.Country);
            swe1.Talk();
        }