Esempio n. 1
0
 public void Sharpen(IPencil pencil)
 {
     Console.ForegroundColor = ConsoleColor.Yellow;
     Console.Write("sharpening the pencil...");
     Console.ResetColor();
     pencil.AfterSharpening();
 }
 public void Sharpen(IPencil pencil)
 {
     //We are sharpening the pencil that passed in as a parameter. Now it can write to max again.
     Console.ForegroundColor = ConsoleColor.Yellow;
     Console.WriteLine("Sharpening the pencil...");
     Console.ResetColor();
     pencil.AfterSharpening();
 }
        public void Sharpen(IPencil pencil)
        {
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine("Sharpening pencil...");
            Console.ResetColor();

            pencil.AfterSharpening();
        }
 public void Sharpen(IPencil pencil)
 {
     pencil.AfterSharpening();
 }