Note that when a class is nested, it has access to the outer class's members.
请注意,当一个类是嵌套类的时候,它可以访问其外层类的成员。
Field in the inner class hides a field with the same name in the outer class.
内部类中的域在外部类中覆盖了一个相同名字的域。
For example, only final object references from the outer class are invokable within the body of the anonymous inner class.
例如,在匿名内联类的主体中,只能调用外部类中的final对象引用。
The inner class code calls these static methods whenever it needs to access the mValue field or invoke the doStuff method in the outer class.
内部类会在外部类中任何需要访问mValue字段或调用doStuff方法的地方调用这些静态方法。
Each of these is an abstract class, complete with two non-abstract inner classes called Double and Float (which are subclasses of the abstract outer class).
其中每一个都是抽象类,他们都是两个名为Double和Float的非抽象内部类(它们是抽象外部类的子类)。
He conducts a class dedicated to the understanding of 'intelligible and sensual design in inner and outer nature', first expounded by Immanuel Kant.
他带了一个班,专门致力于研究可识别的感官构思在内部和外部自然表现,这一概念首先是由康德阐述的。
The class body is inside the outer most curly braces {…}.
类的主体被概括在最外面的大括号中 {...}
A nested class make sense when you have enough related functionality to lump together in a class, but the functionality is only ever going to be used by its "outer" class.
当你有足够多的功能需要归并到一个类里,并且这个类在仅会被外层类所使用时,一个嵌套类就非常有用。
The outer DIV element with an ID attribute value of sidebar contains an inner DIV element with a class attribute called gutter.
外边的DIV元素的ID属性值为 sidebar,这个元素包含的内部 DIV具有class 属性值gutter。
After this colossal failure, Batch stole the remnants of the forces attached to Terror and fled to the Outer Rim Territories in his personal Imperial-class Star Destroyer.
巴奇在这次巨大的失败之后霸占了“恐惧”号附属的武装力量,并搭乘自己的专属帝国级歼星舰逃往外环区域。
Plastic class: Computer outer covering, monitor outer covering.
塑料制品模具:计算机外壳,电脑显示器外壳。
Plastic class: Computer outer covering, monitor outer covering.
塑料制品模具:计算机外壳,电脑显示器外壳。
应用推荐