This content originally appeared on DEV Community and was authored by DevsJavaGirlsBR
O que torna uma classe aninhada static diferente de uma não static?
Uma classe aninhada static usa o modificador static. Por ser static, ela pode acessar somente outros membros static da classe onde está diretamente contida. Ela deve acessar outros membros da sua classe externa através de referências a objetos.
Exemplo: OuterClass.java
This content originally appeared on DEV Community and was authored by DevsJavaGirlsBR

DevsJavaGirlsBR | Sciencx (2024-09-03T00:18:43+00:00) Pergunte ao especialista – classe aninhada static. Retrieved from https://www.scien.cx/2024/09/03/pergunte-ao-especialista-classe-aninhada-static/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.