Esempio n. 1
0
        static void Main(string[] args)
        {
            UnitedNationsSecurityCouncil UNSC = new UnitedNationsSecurityCouncil();

            USA c1 = new USA(UNSC);
            Iraq c2 = new Iraq(UNSC);

            UNSC.Colleague1 = c1;
            UNSC.Colleague2 = c2;

            c1.Declare("不准研製核武器,否則要發動戰爭!");
            c2.Declare("我們沒有核武器,也不怕侵略。");

            Console.Read();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            UnitedNationsSecurityCouncil UNSC = new UnitedNationsSecurityCouncil();

            USA  c1 = new USA(UNSC);
            Iraq c2 = new Iraq(UNSC);

            UNSC.Colleague1 = c1;
            UNSC.Colleague2 = c2;

            c1.Declare("不准研製核武器,否則要發動戰爭!");
            c2.Declare("我們沒有核武器,也不怕侵略。");

            Console.Read();
        }