GetCarrot() 개인적인 메소드

private GetCarrot ( ) : Carrot
리턴 Carrot
예제 #1
0
        public static void Main()
        {
            var chef = new Chef("Salty Macannon");

            chef.Introduce();

            var carrot = chef.GetCarrot();
            var potato = chef.GetPotato();
            var bowl   = chef.GetBowl();

            chef.Cook(potato, carrot, bowl);
        }