JAVASE knowledge summary (four)

Chapter XVII: inner classes and enumerations
First, the inner class
1. What is the inner class?
2. Why should there be an inner class?
3, inner class types:
5, the internal class instance
6, create an instance of the inner class
7, example of the internal class Precautions
8, access variables principles:
4
9, static inner classes:
10, static inner classes are created:
11, static inner classes Precautions
12, static inner classes of general access external variables:
13, an anonymous inner class:
Second, the enumeration:
1. What is the enumeration:
2, the definition of the enumeration way:
3, enumeration is a special class:
4, enumeration of the parent class:





Guess you like

Origin www.cnblogs.com/javastudydoing/p/11564457.html