(Choose 1 answer)
class A{
What is the output of the following code?
public static int getNumber(){
return 5;
}
}
class B
{
int x,y;
public B() {
x = 3;
y = A.getNumber();
}
}
public int getNumber() {
x += y;
y = x-y;
x = y;
return y;
static void Main(string[] args){
B obj = new B();
Console.WriteLine(obj.getNumber());
}
A. 3
B. 5
C. 8
Exit 15