示例#1
0
        static void Main(string[] args)
        {
            DatingProfile sean = new DatingProfile("Sean", "Laux", 29, "Male");

            sean.WriteBio("Loves to code");

            DatingProfile sarah = new DatingProfile("Sarah", "Pratt", 25, "Female");

            sarah.WriteBio("Loves coders");

            DatingProfile ruth = new DatingProfile("Ruth", "Rudeperson", 99, "Female");

            ruth.WriteBio("HAHA, sure loves coders!");

            sean.DisplayBio();
            ruth.DisplayBio();
            sarah.DisplayBio();



            sean.SendMessage("Hello Ruth", "What do you love about coders?", ruth);
            ruth.ReadMessage();
            ruth.SendMessage("Lol you're a nerd", "I was being ironic, coders are lame", sean);
            sarah.SendMessage("Hi!", "Hey Sean, what languages do you know?", sean);

            sean.ReadMessage();
        }
示例#2
0
    static void Main(string[] args)
    {
        DatingProfile Ted = new DatingProfile("Ted", "Dancing", 42, "Male");

        Ted.WriteBio("Loves the OutDoors");

        DatingProfile Babes = new DatingProfile("Babes", "Bunny", 39, "Female");

        Babes.WriteBio("Loves To Hike and Bike Ride");

        Ted.SendMessage("Hello Babes", "Wanna Take a Walk With Me", Babes);
        Babes.ReadMessage();
    }
示例#3
0
    static void Main(string[] args)
    {
        DatingProfile brian = new DatingProfile("Brian", "White", 38, "Male");

        brian.WriteBio("Outspoken and social type");

        DatingProfile kate = new DatingProfile("Kate", "Volvo", 30, "Female");

        kate.WriteBio("I am reserve but social");

        brian.SendMessage("Hello Kate", "Can we have a nice time together tomorrow?", kate);
        kate.ReadMessage();
        kate.SendMessage("Yeah sure", "What time would that be?");
        brian.ReadMessage();
        brian.SendMessage("Ok cool", "by 05:00pm", "See you then");
    }