Exemplo n.º 1
0
        static void Main(string[] args)

        {
            var lunchBuddy = new LunchBuddy
            {
                FirstName = "Carl",
                LastName  = "Levert",
            };

            Console.WriteLine(lunchBuddy.FirstName);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var myself = new LunchBuddy("Keith", "Walker");

            var friends = new List <Employee>();

            friends.Add(new Employee("Friend A"));
            friends.Add(new Employee("Friend B"));
            friends.Add(new Employee("Friend C"));

            var byMyself = myself.Eat().Name;

            Console.WriteLine(byMyself);
            //myself.Eat();

            myself.Eat(friends);

            myself.Eat("Pizza", friends);
        }