You must also use the new keyword.
您还必须使用new关键字。
To do this, use the new keyword parent.
为此,使用新关键字parent。
Note that there is no new keyword in Ceylon.
注意,在Ceylon中没有new关键字。
A new keyword FILE is used to specify the installation directory.
新的关键字FILE用来指定安装目录。
To my mind, a new keyword — such as generator in place of def — would have been a better choice.
对于我来说,新关键字—比如generator代替def—会是一个比较好的选择。
The name declaration is treated as the call to your constructor, and you don't have to add the new keyword.
名称声明可以看作是对构造函数的调用,您不必添加new关键字。
Another way is to have a button that adds new keyword fields on the fly to allow users to add as many keywords as they want.
另一种办法是让按钮随时增加新的关键字,允许用户根据需要添加任意多的关键字。
If we do a quick search on Wicket web applications' source code, we will find that most of the Wicket components are instantiated using the new keyword.
如果我们快速检索一遍WicketWeb应用的源代码,就会发现大部分Wicket组件都是用new关键字实例化的。
Here I've used the new keyword enum, given the enum a name, and specified the allowed values. Grade then becomes an enumerated type, which you can use in a manner shown in Listing 3.
在这里,我使用了新的关键字enum,为enum提供了一个名称,并指定了允许的值。
A constructor is a function you call to instantiate and initialize a particular type of object. You invoke a constructor with the new keyword. Here are a few examples of using constructors.
一个构造器是一个函数,你可以调用它实例化和初始化一个特殊的对象类型。
A constructor is a function you call to instantiate and initialize a particular type of object. You invoke a constructor with the new keyword. Here are a few examples of using constructors.
一个构造器是一个函数,你可以调用它实例化和初始化一个特殊的对象类型。
应用推荐