1.

What will be the output of the given set of code? class maths { static maths() { int s = 8; Console.WriteLine(s); } public maths(int f) { int h = 10; Console.WriteLine(h); } } class Program { static void Main(string[] args) { maths p = new maths(0); Console.ReadLine(); } }

A. 10, 10
B. 0, 10
C. 8, 10
D. 8, 8
Answer» D. 8, 8


Discussion

No Comment Found