nested class

嵌套类
常用释义
嵌套类;巢状类别

例句

1·Make the form a nested class within your component.

使窗体成为组件中的嵌套类。

2·In this example, a nested class hides a class that has the same name in the base class.

在这个范例中,巢状类别会隐藏基底类别中具有相同名称的类别。

3·Why is the behavior of nested class different between different ways of class declaration?

为什么嵌套类的行为不同的类声明方式之间的不同吗?

4·If the nested class is a static class, a box showing a preview of the refactoring displays right away.

如果这个嵌套类是一个静态类,那么就会立即出现一个框,显示这个重构的预览。

5·To preserve this functionality, the refactoring will add an instance of the enclosing class BagExample to the formerly nested class.

为了保留这种功能,重构过程将一个装入类 BagExample 的实例放在前面那个嵌套类中。

6·The nested class StudentImpl is the implementation of the Student trait, which thus provides the get()/set() method pairs demanded by it.

嵌套类 StudentImpl 是 Student 特征的实现,因而提供了必需的 get()/set() 方法对。

7·If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.

如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。

8·Also note that class definitions must appear at the top level of a module, meaning they cannot be nested classes (classes defined inside other classes or functions).

另外要注意,类定义必须出现在模块的最顶层,这意味着它们不能是嵌套的类(在其它类或函数中定义的类)。

9·The convert anonymous class to nested refactoring takes an anonymous class and converts it to a nested class of the method that originally contained the anonymous class.

Convert Anonymous Class to Nested重构能够接受一个匿名类并将其转换为最初包含这个匿名类的方法的一个嵌套类。

10·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.

当你有足够多的功能需要归并到一个类里,并且这个类在仅会被外层类所使用时,一个嵌套类就非常有用。