class A {}
class B {
static A someReference = null;
void foo () {
// does calling this function many times create new objects, or all objects will point to one memory.
someReference = new A;
}
}
不使引用静态意味着它将无法指向新的内存位置。?谢谢你。