What is considered best practice when it comes to class field names and method parameters in the same class?
For example, if I have a field with a name transactionType, you should also specify a parameter in my setter method transactionTypeand just access the field with this.transactionType?
I am not asking for an opinion, I just want to know if this is acceptable, or it will be considered confusing since there are two uses of the same name (although they clearly differ by area).
source
share