예제 #1
0
파일: Program.cs 프로젝트: sapake/TTOS0200
        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();
        }