For example, the following accessor produces the side effect of changing the state of the object each time the number field is accessed.

  • 例如,以下访问器在每次访问number字段时都产生更改对象状态的副作用。
目录 查词历史