

MCQOPTIONS
Saved Bookmarks
1. |
Select the output for the given set of 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 1000 |
B. | 1000 150 1000 |
C. | 100 150 1000 |
D. | 100 150 100 |
Answer» D. 100 150 100 | |