Say you have an object in you constructor like this:
Thing(Object o){
this.o = o;
}
Now say that a variable in the object passed into the constructor on creation of an instance of the thing class. Does the object in the instance of the thing class get an updated variable too?
What I’m trying to say is when an object is passed into a constructor does it just clone that object over and then its done, or does it stay up to date with the object passed in?
Does this make sense?