records ToString and inheritence
What is the output of that code snippet?
Console.Write(new Derived("Test"));
public abstract record Base(string Key)
{
public override string ToString() => Key;
}
public sealed record DerivedRecord(string Key) : Base(Key);
Probably "Test"?







