mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
17 lines
486 B
Markdown
17 lines
486 B
Markdown
|
|
#cs240
|
|
|
|
inner class - when you define a class inside of another class or method.
|
|
*yes* you can do it inside of a method. in which case it's called a **local** inner class.
|
|
when you put **static** on the inner class, it becomes independent of any particular implementation of the class.
|
|
* it cannot access members of the outer class.
|
|
* you can even create an *anonymous* inner class
|
|
|
|
return new Iterator() {
|
|
private variable or whatever;
|
|
public boolean hasNext() {
|
|
|
|
}
|
|
}
|
|
|