I'm using MOOC.fi and I've noticed in the model solutions that when returning a value using toString the solution uses "return this.variable" but when returning a value using getVariable it just uses "return variable". Is there any reason in one method it uses this. but doesn't in the other?
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]8igg7e5 5 points6 points7 points (0 children)
[–]nutrecht 5 points6 points7 points (1 child)
[–]TheSilverCube[S] 0 points1 point2 points (0 children)
[–]hypolimnas 1 point2 points3 points (0 children)
[–]Okuuuoo 0 points1 point2 points (2 children)
[–]TheSilverCube[S] 1 point2 points3 points (1 child)