Jump to content

Talk:Mutator method

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 84.176.233.185 (talk) at 09:01, 18 May 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
In computer science the mutator method is a method that changes the value of the argument variables.

Wrong, the object the function is called on is changed, not the variables that are passed as argumetns to the method/function

In the call-by-value form of argument passing, a reference or pointer to the data needs to be passed.

Wrong, no explicit need for that, just because its a mutator. And the example also shows pass-by-value of an integer