Phase 1 Language Basics + Use advanced _1-3-Java language senior _02- inheritance and polymorphism _ Section 7 inner classes _9_ member inner class


How to use members of the inner class

Indirect way

Indirect manner, using an internal class class method inside the outer



Direct way



Be sure to go to write according to the formula! ! ! !

 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11222769.html