I created this small example class to show my doubts. How can I reference an attribute in which the signature is the same as the parameter passed in the method?
package Teste;
public class Pessoa {
static String nome;
public String local;
static String getnome(String nome){
return this.nome;
}
}
I'm trying to use this
but it does not work.