I have a theoretical question about the use of getters and setters.
Say in a class I have a private variable and a private helper method. If the private method accesses a private variable within the class, is it really necessary for it to do so via a getter/setter method?
My thinking is that for this one special case (since the private method can't be accessed from outside of the class), that not using getters and setters and instead just "reaching in" directly would not be a violation of encapsulation. Is that true?
Thanks