Q164
What will be the output of the following C# code? public class sample public static int x = 100; public static int y = 150; public class newspaper :sample new public static int x = 1000; static void Main(string[] args) console.writeline(sample.x + " " + sample.y + " " + x);
A.
100 150 10
B.
1000 150 1000
C.
100 150 1000
AnswerD.
100 150 100
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board