帮你查了些资料,我就不给你翻译了(怕引起误解)
Inner classes ,unless static ,have an implicit reference to the enclosing instance.The enclosing instance must be provided to the new call that constructs the inner class.In many cases , inner classes are constructed inside instance methods of the enclosing class . in which case this.new is implied by new.
Inner classes have access to the variables of the enclosing class instance . Static inner classes can only access the static members of the enclosing class.Also,inner classes defined in the methos scope have read access to final variables of the enclosing scope.
Inner classes ,unless static ,have an implicit reference to the enclosing instance.The enclosing instance must be provided to the new call that constructs the inner class.In many cases , inner classes are constructed inside instance methods of the enclosing class . in which case this.new is implied by new.
Inner classes have access to the variables of the enclosing class instance . Static inner classes can only access the static members of the enclosing class.Also,inner classes defined in the methos scope have read access to final variables of the enclosing scope.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货