In this case, you might lack setter methods to modify field properties and, instead, rely on constructors to set these values.
在这种情况下,您可能会缺少用于修改字段属性的setter方法,相反,您依靠构造器来设置这些值。
These bounds could specify the set of available constructors that must be present in any instantiation of the parameter.
这些界限可以指定一组可用的构造函数,它们必须出现在参数的每一个实例化中。
If you want objects where the properties and fields are all read-only and set in constructors, you still have to write the same code you would write in.net 1.0.
如果想让对象的属性和字段都为只读并可在构造函数中进行设置,那么我们仍然需要像在。NET 1.0那样编写代码。
Many leading scientists and constructors originated from Russia. They invented the first electric bulb, wireless telegraph, helicopter, bomber, colored photography and TV-set.
许多顶级的科学家和工程师来自俄罗斯。他们发明了第一盏电灯泡,无线电话,直升飞机,轰炸机,彩色摄影以及电视机。
The calls all follow a standard form. Here's the set used to find constructors.
调用都遵循一种标准格式。
Calling super constructors works just as with plain Ruby code, which means that the frame title can be set by calling super (" JRuby Object Browser ") on the first line of the initialize-method.
调用父类的构造方法就和普通的Ruby代码一样,这意味着我们可以在initialize方法的第一行通过调用super (“JRubyObjectBrowser ”)来设定窗口的标题。
To ensure the normal operation of the construction of party a, please provide constructors or placed tools and equipment parts storage room unpacking after a set of boiler (or lock).
为保证施工的正常进行,请建设方或甲方提供放置工具和设备开箱后的零部件存放室一间(或锅炉房设门锁)。
Choose one of the following abstractions (or an abstraction of your own choosing). Determine what data is needed in the class. Provide an appropriate set of constructors. Explain your decisions.
从下述抽象中选择一个(或一个自己定义的抽象),确定类中需要什么数据,并提供适当的构造函数集。解释你的决定。
Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.
构造函数使得程序员可以设置默认值,限制实例化,代码是灵活的和容易写。
Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.
构造函数使得程序员可设置默认值、限制实例化以及编写灵活且便于阅读的代码。
Constructors should do no more than set the initial local variables to simple values.
构造函数中除了使用简单的值对局部变量进行初始化之外,什么都不应该做。
Defining the reasonable set of constructors is often the simplest approach.
通过定义合理的构造器集合通常是最简单的途径。
Defining the reasonable set of constructors is often the simplest approach.
通过定义合理的构造器集合通常是最简单的途径。
应用推荐