Assume I already have a duck. Given that the Duck is readonly and C# is GC'd, is there any way to drop a duck into a mallard with inheritance without hitting a copy constructor?
public class Duck
{
public readonly int wings;
public Duck(int w)
{
wings = w;
}
}
public class Mallard : Duck
{
public Mallard(Duck a) : base(a.wings)
{
}
}