All classes have constructors, whether you define one or not, because Java automatically provides a default constructor that initializes all member variables to zero.
Map,slice和channel类型的魔法,以及伴随的make()功能,这是它们三个的构造函数。
The map, slice and channel types are magical, as well as the accompanying make() function, which is a constructor for all three of them.
这要求我们前面定义的构造函数,创建一个新对象的Greeter类型,并运行构造函数来初始化它。
This calls into the constructor we defined earlier, creating a new object with the Greeter shape, and running the constructor to initialize it.
好了,所以这不是在考察你的构造函数重载的知识,但是他们也没在考试中告诉你主题。
OK so this was not a test of your knowlege of constructors overloading but they don't tell you the topic in the exam either.
这意味着,通过用户自定义的构造函数可以提供合适的toString方法。
This means user-defined constructor functions can provide a suitable toString method.
Agruments:使用上面给出的构造函数的最后形式,这是每个参数的说明:.
Agruments: To use the last form of constructor given above, Here is the description of each argument.
该类的构造函数接收显示器的I2C地址作为第一个参数,即0x3c。
The constructor of this class receives as first parameter the I2C address of the display, which is 0x3c.
该类的构造函数接收显示器的I2C地址作为第一个参数,即0x3c。
The constructor for the mentioned class receives as first parameter the I2C address of the device, which is 0x3c.
Object确实有这样的构造函数,所以如果Object是唯一的超类,没有问题。
Objectdoes have such a constructor, so if Objectis the only superclass, there is no problem.
注意Clock的构造函数被重载了(也就是说可以采用不同类型的参数)。
Note that the Clock constructor function is overloaded(i.e., can take different arguments).
它是一个没有任何参数的构造函数,被定义为nop(没有语句)。
It is a constructor with no parameters defined as nop(empty block of instructions).
Socket类的构造函数试图将客户端连接到指定的服务器和端口号。
The constructor of the Socket class attempts to connect the client to the specified server and the port number.
ArgN:*-可选参数,这些参数传递给方法的超类版本,或者传递给超类的构造函数。
ArgN:*- Optional parameters that are passed to the superclass version of the method or to the constructor function of the superclass.
并发的最大度数是由传递给ConcurrentExecution对象的构造函数的参数来决定的。
The maximum degree of concurrency is determined by the parameter passed to the constructor of the ConcurrentExecution object.
然后,Deutsch会询问必须排除哪些转换才能达到特定的结果,而不考虑造成它的构造函数。
Deutsch then asks which transformations must be ruled out to achieve a particular result, regardless of the constructor that caused it.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt