public static void Main()
string[] items = new string[4] {"one","two","three","four"};
Machine machine = new Machine();
void print(string[] item);
void staple(string[] item);
void scan(string[] item);
void photocopy(string[] item);
interface IMachine : IPrint, IStaple, IFax, IScan, IPhotocopy
public void print(string[] item)
Console.WriteLine("All Items printed" + item.Length);
public void staple(string[] item)
Console.WriteLine("Items stapled" + item.Length);
public void fax(string[] item)
Console.WriteLine("All Items Faxed" + item.Length);
public void scan(string[] item)
Console.WriteLine("All Items Scanned" + item.Length);
public void photocopy(string[] item)
Console.WriteLine("All Items Photo copied" + item.Length);
public void print(string[] item)
foreach (var thing in item)
Console.WriteLine(thing);