© { JSL }
13
object Creation
·
a
class
local variable lives on the stack
w
is not definitely assigned
w
can be initialised with
null
or a c'tor call
p
stack
?
.X
.Y
heap
required
static void
Main()
{
Pair p;
}
static void
Main()
{
Pair p =
null
;
}
static void
Main()
{
Pair p =
new
Pair();
}
p
null
p
@
0
0