コード例 #1
0
ファイル: Of76.cs プロジェクト: ClarkChen633/MyCSharp
 public static void Main(string[] args)
 {
     string result = "";
     INose[] i = new INose[3];
     i[0] = new Acts();
     i[1] = new Clowns();
     i[2] = new Of76();
     for (int x = 0; x < 3; x++)
     {
         result += (i[x].Ear() + " "
                    + i[x].Face) + "\n";
     }
     Console.WriteLine(result);
     Console.ReadKey();
 }
コード例 #2
0
        public static void Main(string[] args)
        {
            string result = "";

            INose[] i = new INose[3];
            i[0] = new Acts();
            i[1] = new Clowns();
            i[2] = new Of76();
            for (int x = 0; x < 3; x++)
            {
                result += (i[x].Ear() + " "
                           + i[x].Face) + "\n";
            }
            Console.WriteLine(result);
            Console.ReadKey();
        }