- #1
prosteve037
- 110
- 3
We learned of accessor and mutator methods in class recently. But even after a few labs implementing the two types, I still am having trouble understanding when to use/implement either one.
I don't understand why you'd need two different method types. Couldn't you set any method with a
return type specification and still get have it return/get/give values?
Unless, I'm looking at this the wrong way and the code is supposed to return some other part of code??
I don't understand why you'd need two different method types. Couldn't you set any method with a
Code:
void
Unless, I'm looking at this the wrong way and the code is supposed to return some other part of code??