Kizspy | Question: 11
(Choose 1 answer)
class A {
static int x = 1;
static A(){
x++;
}
public A(){
x += 3;}
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. 3,3
C. 1,3
D. 2,3