Lecture 13: Enums and Inner Classes

This lecture explores Java's support for enumerated types, using days of the week, months of the year and the ranks & suits of playing cards as examples. It also looks at how classes can be defined inside other classes, and why we might wish to do this. The lecture concludes with an example of how anonymous inner classes can be used to implement event handlers in a JavaFX program, contrasting this with the simpler approach now possible in Java using lambda expressions.