You need it when you have a local variable that has the exact same name as the member variable. In this case, the local variable is said to shadow the member variable. To get to the member variable in this situation, you must use
Some people consider it good practice to explicitly mention that the variable you are modifying is a member variable by using
this all the time, but this is not always the case.