Quiz · Value and reference types · lesson 11 of 11
Quiz — == on objects
What does the program print (lines separated by spaces)?
Spot a = new Spot();
a.X = 7;
Spot b = new Spot();
b.X = 7;
Console.WriteLine(a == b);
b = a;
Console.WriteLine(a == b);
class Spot { public int X; }