Objects:
1.Create inner classes
2.Implement type casting
Java provides following four types of inner class:
Regular Inner Class
Static inner class
Method-local inner class
Anonymous inner class
Objects:
1.Create inner classes
2.Implement type casting
Java provides following four types of inner class:
Regular Inner Class
Static inner class
Method-local inner class
Anonymous inner class
转载于:https://www.cnblogs.com/Catherinezhilin/p/9894049.html