Kizspy | Question: 10
(Choose 1 answer)
record A
{
static int x = 1;
static A() => x = 4;
public A()=> x = 5;
public void Print() => Console.WriteLine($"{x},{++x}");
}
class Program{
static void Main(string[] args){
A obj = new A();
obj.Print();
}
}
The output will be:
A. 5,6
B. 6,5
C. 4,5
D. 1,4