예제 #1
0
        static void Main(string[] args)
        {
            Fan fan = new Fan();

            GClooney firstGClooney  = new GClooney("I love your songs");
            TSwift   secondGClooney = new TSwift("My wife loves your songs");


            firstGClooney.AddFollower(fan);
            secondGClooney.AddFollower(fan);

            firstGClooney.Tweet  = "I love your songs very much!!!";
            secondGClooney.Tweet = "My wife and I love your songs";
        }
예제 #2
0
        static void Main(string[] args)
        {
            var gClooney = new GClooney("I Love MY New Wife.");
            var tSwift   = new TSwift("I started a joke is my favorite number.");

            var firstFan  = new Fan();
            var secondFan = new Fan();

            gClooney.AddFollower(firstFan);
            tSwift.AddFollower(secondFan);

            gClooney.Tweet = "I Love Joker";
            tSwift.Tweet   = "I am looser";

            Console.ReadLine();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var gClooney = new GClooney("I love my new wife");
            var tSwift   = new TSwift("1981 is now my favorite number");

            var firstFan  = new Fan();
            var secondFan = new Fan();

            gClooney.AddFollower(firstFan);
            tSwift.AddFollower(secondFan);

            gClooney.Tweet = "My new wife didn't force me to tweet. ";
            gClooney.Tweet = "I love my new music";

            Console.Read();
        }
예제 #4
0
        static void Main(string[] args)
        {
            var fanA = new Fan();

            fanA.Name = "Steve";
            var fanB = new Fan();

            fanB.Name = "George";

            var celeb1 = new Celebrity();

            celeb1.Fans = new List <IFan> {
                fanA, fanB
            };
            celeb1.Name = "George Clooney";

            celeb1.Tweet = "Hello World!";
        }