Esempio n. 1
0
        public static void Try()
        {
            ChatRoom room = new ChatRoom();

            Chatter samu   = new Chatter("Samu", room);
            Chatter enrico = new Chatter("Enrico", room);
            Chatter luca   = new Chatter("Luca", room);

            samu.Say("Hi to every ones");
            enrico.Say(samu, "Hi, how are you?");

            Chatter anna = new Chatter("Anna");

            room.Join(anna);

            luca.Say("Here is Anna, a friend of mine");
            luca.Say(anna, "Hi Anna, how are you");
        }