SE450
:
Side Effects
[26/57]
Side effect of a method: any observable state change
Mutator: changes implicit parameter
Other side effects: change to
explicit parameter
static object
Avoid these side effects--they confuse users
Good example, no side effect beyond implicit parameter
a.addAll(b)
mutates
a
but not
b