© { JSL }
64
ref out
·
interface
parameters
w
can be
ref
qualified
w
can 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();
}