|
Ok guys.
Thanks for explanations. So as far as I understand: along with good programming practice I should put private/protected for variables as well as for methods which process these variables, and write separate public method which returns result of these methods (their process - calculations, changing, etc.)? In other words - methods in class should be private/protected so no one can interfere from outside. For these methods should by public methods which returns their result?
|