* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
579 B
Markdown
8 lines
579 B
Markdown
# Nested Classes
|
|
|
|
Nested classes are classes defined inside another class. The class that contains the inner class is known as the outer class. Nested classes can access members of the outer class, even if they are declared private. They are a way to logically group classes that are only used in one place, increasing encapsulation and maintainability.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Java Nested Classes](https://jenkov.com/tutorials/java/nested-classes.html)
|
|
- [@article@Guide to Nested Classes in Java](https://www.baeldung.com/java-nested-classes) |