匿名类 英语是什么意思 - 英语翻译

anonymous class
匿 名类

在 中文 中使用 匿名类 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
这些匿名类是使用新类定义的。
These anonymous classes are defined using the new class..
支持将匿名类、结构和联合作为扩展。
Anonymous classes, structures, and unions are supported as an extension.
正如你所想象的,匿名类没有名字。
An anonymous class, as you might guess, does not have a name.
局部类和匿名类.
Local and Anonymous Classes.
匿名类中,this关键字引用匿名类实例。
In an anonymous class, the this keyword refers to the anonymous class instance.
Combinations with other parts of speech
用名词使用
我们称这些类为匿名类
We call these anonymous classes.
正如你所想象的,匿名类没有名字。
As you would expect, an anonymous class has no name.
我们称这些类为匿名类
Such classes are defined as anonymous classes.
同样,您可以使用匿名类来创建具有多个抽象方法的接口实例。
Similarly, you can use anonymous classes to create instances of interfaces with multiple abstract methods.
扩展也可以实现匿名类和匿名结构,但前提是它们没有C++特性。
The extension also enables anonymous classes and anonymous structures, as long as they have no C++ features.
这又是一个旧版本简单匿名类的经典用例,但现在可以不这样了。
This is another classicuse case for an old version of a simple anonymous class, but it can't be done now.
而Java直到版本8才从技术上将函数视为一等公民,虽然你可以用匿名类来模拟它。
Java technically did not have first-class functions until version 8,however you could simulate first-class functions using anonymous classes.
因为i被传递给匿名类的基类的构造器,它并不会在匿名类内部被直接使用。
While i is passed to the base constructor of the anonymous class, it is never directly used inside the anonymous class.
Homegt;语言扩展gt;标准C和标准C++语言扩展gt;匿名类、结构和联合.
Homegt; Language Extensionsgt; Standard C andstandard C++ language extensionsgt; Anonymous classes, structures and unions.
在Wine类的定义中包含该限定表明属于Wine类的事物,也是该匿名类的成员。
Inserting this subclass restriction in the Wine class definition body states that things thatare wines are also members of this anonymous class.
在java8中你可以使用Lambda表达式替代丑陋的匿名类
In Java 8, you can replace ugly anonymous classes with more readable lambda expressions.
正如在批注中所示,C和VB中的Closure均被实现为匿名类,它包含了必要的成员变量。
As a side note,closures in C and VB are implemented as anonymous classes that contain the necessary member variables.
编译器支持严格C++和严格C90特有的某些扩展,如匿名类、结构和联合。
The compiler supports some extensions specific to strict C++ and strict C90,for example, anonymous classes, structures, and unions.
除了上述类型的类,Java也有一些特殊的类称为内部类和匿名类
Apart from the above mentioned types of classes,Java also has some special classes called Inner classes and Anonymous classes.
除了上面提到的几种类型,Java还有一些特殊的类,如:内部类、匿名类
Apart from the above mentioned types of classes,Java also has some special classes called Inner classes and Anonymous classes.
这更接近事实,但是你可以用匿名类做一些事情,你不能用lambdas做。
This is almost true butthere are a few things you can do with anonymous classes that you can't do with lambdas.
使用匿名类与Lambda表达式的一大区别在于关键词的使用。
A big difference between lambda expressions and anonymous inner classes is the use of the this keyword.
事实上,出于很多原因,Java的Lambda表达式仅仅是Java匿名类使用的语法糖。
In fact, for many reasons Java lambdas are very close tobeing merely syntactic sugar for the use of anonymous classes.
匿名类(AnonymousInnerClass).
Anonymous inner class.
C++中的匿名类和结构。
Anonymous classes and structures in C++.
可以创建匿名类对象。
Anonymous usage profiles may be created.
由同一个匿名类创建的对象是该类的实例。
Objects created by the same anonymous class are instances of that class..
当创建简单的一次性对象时,匿名类很有用。
When simple, one-off objects are created then anonymous classes are useful.
需要注意是它产生四种方法,而不是正常的匿名类
The biggest caveat is that it generates four methods versus normal anonymous classes.
同样,你可能会认为匿名类在lambdas时代已经过时了。
You can think that anonymous classes are obsolete in the era of lambdas.
结果: 46, 时间: 0.02

单词翻译

顶级字典查询

中文 - 英语