0
When it is a non-static attribute you can use the this.nomeAtributo
.
Example:
public class NomeDaClasse {
private String atributo;
public void (String atributo) {
fazerAlgo(this.atributo);
fazerAlgo(atributo);
}
}
However, how is it done to catch if this attribute is static?
public class NomeDaClasse {
private static String atributo;
public void (String atributo) {
fazerAlgo(?.atributo);
fazerAlgo(atributo);
}
}
NomeDaClasse.atributo
– user28595
Yes! I forgot. Thanks!
– Welson Teles