(Choose 1 answer)
record A
public int x { get; set; } = 1;public int y { get; set; } = 2;
public void Print()=>Console.Write($"{x},{y}");
}
record B: A{
public B(){
x++;y++;
}
}
class Program {
static void Main(string[] args) { A obj1 = new B();obj1.Print();Console.WriteLine();
}
}
The output will be:
A. 2,3
w
Finish
E24