LogiQuest
Back to Classes and Objects
10

What is the output of the following program?

var a = new P { X = 1 };
var b = new P { X = 1 };
Console.WriteLine(a == b);
class P { public int X; }
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.