事实上,图2是uml类的定义。
这些类的定义由odf规范指定。
The definition of these classes is specified by the ODF specification.
Groovy中类的定义非常简单,不是吗?
为了测试,总可以动态地改变类的定义。
For testing purposes, you can always change the definition of the class on the fly. You can open the existing class later.
用以表示函数、操作符和变量类的定义如清单1所示。
Listing 1 shows the definitions of the classes used for representing functions, operators, and variables.
当一个原型可以修改元类的定义的主要影响是
The main aspects in which a stereotype can modify the metaclass definition are
这就等于把下面的代码加入到了类的定义中。
This causes the equivalent of this code to be added to the class.
下面的代码样本显示了类的定义和表的别名定义。
The following code sample shows the class definition and the definition for our table alias.
cs包含了应用程序使用的uml包的类的定义。
CoreClasses.cs contains the class definitions from the UML package used by the application.
随着时间的推移,您会发现自己必须要更改类的定义。
Over time you'll find yourself having to make changes to your class definitions.
或者你可以把命名元组转换成一个常规的类的定义。
如果已存在具有相同名称的类的定义,它将被新的覆盖。
If a class definition with the same name already exists, it will be overwritten with the new one.
我说过,当我们,调用这个类的定义的时候,它会去调用。
When I call this class definition, it calls init, init and I give it an x and a y value.
如果我们有一个基类的定义——FacebookUser,如下。
If we have a definition of a base class - FacebookUser, which look like follows.
使得类的定义和其他声明在多个源文件中可见的一种机制。
A mechanism for making class definitions and other declarations available in multiple source files.
这个类的定义这里然后取值,也可以这么说,在类的定义的里面。
And is able to then say, inside of that class definition, find the value of x.
让我们看一个简单的类的定义,我们将向其添加和除去一些属性。
Let's take a look at a simple class definition to which we will add and remove attributes. Here is the initial definition.
我现在可以实施和支持多播委托多,单一的委托类的定义更加容易。
I can now implement and support a multicast delegate much easier in one single delegate class definition.
根据这些类的定义,在程序的运行其间,实例可以动态的进行创建。
From these classes, instances are dynamically created during execution of the program.
通常,该错误由编译器捕获,只有当类的定义发生不相容变化时才发生。
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
清单1展示了一个示例注释声明,后面是将该注释用于某些方法的类的定义。
Listing 1 shows a sample annotation declaration followed by the definition of a class using that annotation on some methods.
假设我们想使用一个具有特定名称的类,但那个类的定义位于多个文件里。
Imagine that you want to use a class of a particular name, but more than one definition for that class exists (presumably these are different definitions).
在类的定义内部可以定义各种变量和方法,等会再来详细学习一下这些内容哈。
You can define variables and methods inside a class definition, but we will get back to that later.
当然,如果一种语言不支持继承就,“类”就没有什么意义。派生类的定义如下所示。
Of course, a language feature would not be worthy of the name 'class' without supporting inheritance. The syntax for a derived class definition looks as follows.
文中给出了在DOOD中类的定义和表示,并以此为基础介绍了利用规则生成派生类。
This paper introduces the definition and denotation of classes in DOOD, then discusses the derived classes created by rules based on them.
首先,确保原来的类的定义没有被更改,以便在unpickle现有实例时可以找到它。
First, leave the original class definition intact so that it can be found when existing instances are unpickled.
例如,在Time1. py里面,类的定义和后面的函数定义就没有啥明显的练习。
For example, in Time1. py there is no obvious connection between the class definition and the function definitions that follow.
通常是由于持久化框架在编译期或者运行期修改类的定义,添加某些所需信息以减少持久化实体时的麻烦。
Usually the problem occurs because the persistence frameworks will alter classes during compilation or runtime, to include information they require, to ease the pain related to persisting entities.
通常是由于持久化框架在编译期或者运行期修改类的定义,添加某些所需信息以减少持久化实体时的麻烦。
Usually the problem occurs because the persistence frameworks will alter classes during compilation or runtime, to include information they require, to ease the pain related to persisting entities.
应用推荐