Esempio n. 1
0
        static void Main(string[] args)
        {
            Telephone   t1 = new Telephone("1"), t2 = new Telephone("2");
            CallJournal n = new CallJournal();

            t1.ObserveRegister(n);
            t2.ObserveRegister(new FileJournal());
            t1.UploadAccount(500);
            t1.Calling(t2);
            t1.Calling(t2);
            t2.Calling(t1);
            t2.Calling(t1);
            t1.Calling(t2);
            t1.Calling(t2);
            t2.Calling(t1);

            Console.ReadLine();
        }