C Sharp (C#) - Interfaces
What will be the output of this C# code?
interface IPrinter { void Print(); }
class ConsolePrinter : IPrinter { public void Print() { Console.WriteLine("Console"); } }
class FilePrinter : IPrinter { public void Print() { Console.WriteLine("File"); } }
class Program { static void Main() { IPrinter printer = new FilePrinter(); printer.Print(); } }