Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("He boo how you been?!");

            Eliza  eliza  = new Eliza();
            Jordan jordan = new Jordan();
            Ryan   ryan   = new Ryan();
            Jackie jackie = new Jackie();
            Ollie  ollie  = new Ollie();
            Tamela tamela = new Tamela();

            List <Iteammate> serverTeam = new List <Iteammate>()
            {
                eliza, jordan, ryan
            };

            List <Iteammate> clientTeam = new List <Iteammate>()
            {
                jackie, ollie, tamela
            };

            foreach (Iteammate member in serverTeam)
            {
                member.Work();
            }

            foreach (Iteammate member in clientTeam)
            {
                member.Work();
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            List <IDreamTeam> ServerSide = new List <IDreamTeam>()
            {
            };
            List <IDreamTeam> ClientSide = new List <IDreamTeam>()
            {
            };

            Beyonce   beyonce = new Beyonce("Beyonce", "Kween", "Being the Kween");
            Daenaryus dany    = new Daenaryus("Daenaryus", "Stormborn", "Dragon Riding");
            JonSnow   jon     = new JonSnow("Jon", "Snow", "Lord Commander");
            Madeline  mad     = new Madeline("Madeline", "Power", "Making Oven Cookies");
            Jackie    jackie  = new Jackie("Jackie", "Knight", "Spongebob knowledge");
            Kathy     kathy   = new Kathy("Kathy", "Weisensel", "Sarcasm");

            ServerSide.Add(beyonce);
            ServerSide.Add(dany);
            ServerSide.Add(jon);
            ClientSide.Add(mad);
            ClientSide.Add(jackie);
            ClientSide.Add(kathy);

            Console.WriteLine("SERVER SIDE");
            foreach (IDreamTeam person in ServerSide)
            {
                Console.WriteLine(person);
            }
            Console.WriteLine("-------------");
            Console.WriteLine("CLIENT SIDE");
            foreach (IDreamTeam person in ClientSide)
            {
                Console.WriteLine(person);
            }
            Console.WriteLine("-------------");
            Console.WriteLine("NOW LETS WERRRRRKKKKKKK");
            foreach (IDreamTeam person in ServerSide)
            {
                person.Work();
            }
            foreach (IDreamTeam person in ClientSide)
            {
                person.Work();
            }
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Kathy    kathy1    = new Kathy("Kathy", "Weisensel", "asking about your dog");
            Tamela   tamela1   = new Tamela("Tamela", "Lerma", "ordering another drink");
            Eliza    eliza1    = new Eliza("Eliza", "Meeks", "wrangling");
            Jackie   jackie1   = new Jackie("Jackie", "Knight", "coding binges");
            Madeline madeline1 = new Madeline("Madeline", "Power", "keepin it classy");
            Chaz     chaz1     = new Chaz("Chaz", "Henricks", "projecting his voice");

            List <IDreamTeam> serverSide = new List <IDreamTeam>();

            serverSide.Add((kathy1));
            serverSide.Add((eliza1));
            serverSide.Add((madeline1));

            List <IDreamTeam> clientSide = new List <IDreamTeam>();

            clientSide.Add((chaz1));
            clientSide.Add((jackie1));
            clientSide.Add((tamela1));

            Console.WriteLine("My client side Dream Team and their specialities:");
            foreach (IDreamTeam item in clientSide)
            {
                Console.WriteLine($"{item.FirstName} {item.LastName} --- {item.Speciality}");
            }
            Console.WriteLine("\n");
            Console.WriteLine("My server side Dream Team and their specialities");
            foreach (IDreamTeam item in serverSide)
            {
                Console.WriteLine($"{item.FirstName} {item.LastName} --- {item.Speciality}");
            }
            Console.WriteLine("\n");
            Console.WriteLine("How does each person contribute to the Dream Team?");
            foreach (IDreamTeam item in clientSide)
            {
                item.Work();
            }
            foreach (IDreamTeam item in serverSide)
            {
                item.Work();
            }
        }