Overwrite or override

后端 未结 5 2138
耶瑟儿~
耶瑟儿~ 2020-12-22 22:13

It might seem to be a stupid question but I\'m just so curious and want to use the correct term when talking about the issue. Couldn\'t find a similar question here so I dec

5条回答
  •  爱一瞬间的悲伤
    2020-12-22 22:23

    If you're replacing one implementation completely with another, it's "overwriting" or more commonly "replacing". If you're replacing an implementation with another for some specific cases, it's "overriding".

    To "overwrite" something is to put something else in its place, destroying the thing overwritten. To "override" something is to cause something else to operate instead of it without harming or changing the thing overridden.

提交回复
热议问题