Answer (Choose 1 answer)
}
A. 6
B. 0
What is the output of the following code?
class Sample
{
int x, y;
public Sample() { x = 0; y = 0;
}
public Sample(int x, int y){this.x = x; this.y = y;
}
public int getXY { get{return x * y;}}}
static void Main(string[] args){
Sample s = new Sample(2,3);Console.WriteLine(s.getXY);
C. Compile-time errors
D. Run-time errors
Exit (19