Beispiel #1
0
        static void Main(string[] args)

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

            Console.WriteLine(lunchBuddy.FirstName);
        }
Beispiel #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);
        }