Question 1  of   14

What is the output of the following program? class Program { delegate void D(int x, int y); static void A(int x, int y) => Console.Write(x + y); static void B(int x, int y) => Console.Write(x - y); static void Main() { D a = A; D b = B; D all = a + b; all(4, 2); } }

A. 62
B. 42
C. 6
D. 8