Learn Java Programming - Introduction to Nested Classes

Опубликовано: 27 Сентябрь 2024
на канале: Daniel Ross
2,942
48

A nested class is simply a class inside of another class.
class Standard {
class Nested {
}
}
Of course nothing is that simple in Java with all the modifiers, scope considerations, and core object oriented functionality. In fact there are four types of nested classes each with their own unique rules. The purpose of this tutorial is to simply make you aware of each type of nested class without going into great detail. I'll detail each type of nested class in separate tutorials.