Anonymous inner class
1. Definition is a special kind of local inner class, which also has its own characteristics.
2 . Particularity
(1) Anonymous inner class must implement an interface or inherit a class.
(2)Only one object of this class can be created based on an anonymous inner class, and the creation of the object is completed together with the definition of the class.
3. Syntax: class name/interface name reference = new class name/interface name () {}