In Listing 5, we add methods for setting and accessing data in browser cookies.
清单5中添加了在浏览器cookie中设置和访问数据的方法。
You can also add methods and data to existing Ruby classes because classes are open.
还可以添加方法和数据到已有的类中,因为类是开放式的。
Programmers often need to add methods to classes that are part of the language runtime itself.
开发人员经常有向某一语言内建类中添加方法的需求。
The EMC allows you to add methods to either a single instance or all instances of a particular class.
EMC允许您将方法添加到某个类的单一实例或所有实例中。
JiBX USES bytecode enhancement to add methods to compiled classes that convert instances of the classes to and from XML.
JiBX使用字节码增强向编译后的类添加方法,以便在类的实例与XML之间进行转换。
Firstly, never add methods that might be useful in the future.
首先,不要加入将来才可能用到的方法。
Extension methods enable you to add methods to an existing class.
通过使用扩展方法,可以将方法添加到现有类中。
You might decide later that you want to add methods to a named tuple.
有时候你可能想给一个命名元组添加方法。
As you can see, defining a Category allows you add methods to some instances - only the instances inside of a use block.
可以看到,定义Category允许您将方法添加到特定实例中—只限于use块内部的实例。
The interface extension feature of XMLBeans allows you to add methods with custom implementation for the generated POJOs.
XMLBeans的接口扩展特性允许在生成的POJO中添加具有定制实现的方法。
If we add methods that should not be there the classes implementing the interface will have to implement those methods as well.
如果我们增加了不应有的方法,继承这个接口的类将不得不同时实现这些方法。
Next, let's add methods to each of the classes to simply wrap the methods defined for the TableAdapters from the first tutorial.
接下来,让我们来给这些新建的类加上一些方法,简单的将第一节中的TableAdapter中的那些方法包装起来就行了。
You can use any (or all) of the techniques outlined in this article to add methods easily to one, some, or all of the classes you want.
您可以使用本文介绍的任何(或所有)技巧来向任意数量的类添加方法。
The easiest way to dynamically customize class behavior USES an imperative style: first create the class, then add methods and attributes.
利用强制方式动态自定义类行为最简单的方法是:首先创建类,然后添加方法和属性。
Of course, what I provide in these two articles is just an example: to use the generator, you have to implement the DatabaseTable base class, then add methods for deleting and updating.
当然,这两篇文章中所举的仅仅是一个例子,要使用生成器还必须实现DatabaseTable基类,并增加删除和更新的方法。
Add methods, properties, and events.
添加方法、属性和事件。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
应用推荐