例えば:
class Person {
def stuff
}
class Toilet {
public void main(String... args){
Person person = new Person()
person.getStuff() //null, but you get my point
}
}
getStuff()
のコピーを返しますstuff
か? それともstuff
それ自体?返されたオブジェクトの変更可能性が心配です。stuff