in general, it does not matter, but if you pass a variable with the name, say button1, to the method of the class that already has an element called button1, then you will need to eliminate the fact that you really had in mind.
This is probably why people now use this. To explicitly indicate which variable you had in mind, if you use this practice all the time, you will not be mistaken in those few cases when it is important.
Of course, you can make sure that all member variables are uniquely named, for example, with a prefix of type m_ , but these days it does not correspond to the fashion, people prefer to write this.
source share