using System;
class Program
{
record Bird(string Color, int Feathers);
static void Main()
{
Bird bird1 = new(
"blue", 1000);
// Copy the bird and change its color to yellow.
Bird bird2 = bird1 with { Color =
"yellow" };
// Print the birds.
Console.WriteLine(bird1);
Console.WriteLine(bird2);
}
}
Bird { Color = blue, Feathers = 1000 }
Bird { Color = yellow, Feathers = 1000 }