© { JSL }
64
Text Box: ref out
ref out
Folded Corner:
·interface parameters
wcan be ref qualified
wcan be out qualified
interface IPluckable
{
    void Pluck();
}
static void Replace(ref IPluckable instrument)
{
    instrument = new Guitar();
}
static void Create(out IPluckable instrument)
{
    instrument = new Banjo();
}