Vidyalelo
C# Programming · Q165

Miscellaneous in C Sharp

Programming · C# Programming · question 165

Q165

What will be the output of the following C# code snippet? class A int i; int j; public A() i = 1; j = 2; class Program static void Main(string[] args) A obj1 = new A(); Console.WriteLine(obj1.ToString()); Console.ReadLine();

A.
True
B.
False
C.
String associated with obj1
Answer
D.
Compile time error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board