JAVA SE high-level language study notes -03.Java -02- inheritance and polymorphism - Section 7 inner class

The concept 1_4_7_07_ inner classes and classification .avi

Internal into categories:

Members of the inner class

Partial inner class

Here Insert Picture Description

Defined .avi 1_4_7_08_ members of the inner class

Here Insert Picture Description
Here Insert Picture Description
Separately compiled java files, view .class files
Here Insert Picture Description
generated .class, inner classes of the class called Body $ Heart.class , the middle of a dollar sign

Here Insert Picture Description

1_4_7_09_ members of the inner class use .avi

Here Insert Picture Description
Here Insert Picture Description

1_4_7_10_ internal variables of the same name like access .avi

Inner class to access external class member variable, if the variable of the same name appear, visit the following format:

Here Insert Picture Description
Here Insert Picture Description
1_4_7_11_ local internal class definition .avi

Here Insert Picture Description
Members of the class distinction and the inner surface of the partial inner class comprising:

Members of the inner class method in addition to categories

Partial inner class method in the category of

Local inner class, nothing can be written in front of class, otherwise it will not compile

Permissions define a modifier class, according to the class which is defined to select a different range of permission modifier

1_4_7_12_ partial final internal problems like .avi

Here Insert Picture Description
Access to heap space left when the stack when the above variables have to be the only constant data
so alive heap memory object you to continue using this constant

1_4_7_13_ anonymous inner classes .avi

Here Insert Picture Description
Here Insert Picture Description
Note 1_4_7_14_ anonymous inner class .avi

Here Insert Picture Description
Anonymous objects can only be called only time, to call many times, need to give the object a name
anonymous inner classes and anonymous object is not the same thing

1_4_7_15_ class as a member variable of type .avi

Here Insert Picture Description
String can be like with like for like with other class as a member variable of the class

1_4_7_16_ interface as the member variables of type .avi

Here Insert Picture Description
References to parent class subclasses polymorphism
Here Insert Picture Description

And an interface as parameter or 1_4_7_17_ method .avi

Here Insert Picture Description

1_4_7_18_ red envelopes _ Case analysis .avi

We need to do is implement the following interfaces and functions
Here Insert Picture Description
because the video data is no ready-made code that tutorial provided, and therefore can not manually write the code, the code can only analyze the author's ideas

1_4_7_19_ red envelopes red envelopes case _ the general average .avi

Here Insert Picture Description

1_4_7_20_ luck red envelopes red envelopes case _ random .avi

Published 168 original articles · won praise 39 · views 110 000 +

Guess you like

Origin blog.csdn.net/u010481276/article/details/104602255