Junior — Senior
Analysis of program behavior
livecode
Task condition
What output will be obtained after executing the given code?
public class BC
{
public int A {get;set;}
}
var first = new BC() {A = 5};
var second = new BC() {A = 8};
first = second;
first.A = 3;
first = new BC() {A = 10};
Console.WriteLine(second.A);