mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
486 B
486 B
#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() { } }