https://www.passeidireto.com/pergunta/122737458/what-is-the-result-of-declaring-two-variables-with-the-same-name-in-the-same-sco
Recomendo esse arquivo que achei no Passei Direto