(Choose 1 answer)
class Test
What is the output of the following code?
{
int x, y;
public Test() { x = 0; y = 0; }
public int Z set {
this.x = value;
this.y = x * 2;
}
get { return this.x + this.y; }
}
}
A. 9
B. 0
C. 3
D. 6
static void Main(string[] args){Test s = new Test();
s.Z = 3;
Console.WriteLine(s.Z);
}
Exit 21