For example, all a VFR pilot has to do to enter Class C airspace is establish two-way radio contact with ATC.
例如,VFR飞行员进入C类空域所要做的就是与空中交通管制建立双向无线电联系。
If you observed a four-year-old child, for example, my daughter is 4 years old; you might read up on Piaget's stages of cognitive development we covered those in class.
如果你观察一个四岁的孩子,例如我四岁的女儿,你可能要先研读皮亚杰的认知发展阶段理论,这一理论是我们在课堂上讲过的。
The previous example contains a class object and string.
前面的示例包含一个类对象和字符串。
To simplify this example, we'll just add a new class whose methods return some simple data.
为了简化这个示例,我们添加了一个新类,它的方法返回一些简单数据。
A common example of an error in a profile is a stereotype or class attribute with no type.
概要文件中的一个普通错误案例都是原型或者没有类型的类属性。
An example of referring to a class in a namespace is shown below.
下面给出了一个例子,展示了如何在名称空间中引用类。
Now let's begin our example by creating a simple class that we can exercise in our test scenarios.
现在,让我们建立一个测试场景的简单的类,来开始我们的示例。
As a simple example, consider the following class.
作为一个简单的例子,考虑以下类。
The StyledText example USES a helper class, TextContent, to identify ranges of text with special attributes.
StyledText的例子使用了一个helper类textcontent,以确定具有特殊属性的文本的范围。
Listing 2 presents an example of a class that USES atomic updates to change the book that someone is reading.
清单2展示一个有关类的示例,该类使用原子更新来更改某人正在读取的书目。
This is often a class object which holds a static reference; for example, the MyClass object in the memory leak example in Listing 1.
这通常是一个保留静态引用的类对象;例如,清单1的内存泄漏示例中的MyClass对象。
The example begins by creating a new class called WebServerClass.
这个示例首先创建一个称为WebServerClass 的新类。
You just write a test class (TC_Person in this example) that subclasses TestCase.
您只是写了一个测试类(在该示例是tC _ Person),它是TestCase的子类。
Adds a new UML element (for example, a UML class to checked-out UML fragments) and modifies an existing UML element in the model file as well as the fragment file.
添加一个新的UML元素(例如,一个UML元素以检出UM l片段),并变更模型文件或者片段文件中已存在的uml元素。
Create a transform class (see the example in Listing 1).
创建一个转换类(请参见列表1中的例子)。
For example, a class load from another location may not be trusted for access to the local filesystem.
例如,当从另一个位置加载的类访问本地文件系统时,我们可能不信任它。
Dependency injection can occur in a variety of ways, for example, via a setter method or a class variable.
依赖性的引入可以以多种方式出现,例如,通过设置属性值的方法或者类变量。
Figure 1 shows an example class model, which represents a company with employees and offices.
图1显示了一个实例类模型,它表示一家拥有雇员和办公室的公司。
For example, a class describes a physical object in the real world.
例如,一个类描述了现实世界中的一个物理对象。
Listing 1 gives a simple example of a service interface, and a root data model class.
清单1给出了一个服务接口和根数据模型类的简单例子。
It is defined as a separate element, because it is possible for a single class to contribute to multiple parts of a transformation (for example, class, property, and operation).
它被定义为单个的元素,因为单个类对转换的多个部分(举例来说,类、属性,和方法)做出贡献是可能的。
For example, a class loader could first load a class explicitly and then load all of its referenced classes implicitly.
例如,类装入器可能先显式地装入一个类,然后再隐式地装入它引用的所有类。
This article gives you a simple example of a small class hierarchy to illustrate this concept.
本文将提供一个小型类层次结构的例子,举例说明这个层次结构的概念。
Rather than using reflection to access a property of an object, for example, you can construct a class at run time that does the same thing — but does it much faster.
它没有使用反射来访问对象的属性,例如,可以在运行时构建一个类来做同样的事——但这样做会快许多。
For example, when adding a class to a diagram, it can draw all these relationships automatically.
比如,在向图中增加类时,它可以自动地画出这些关系。
Our first example is a class that does nothing more than print a two-part name.
第一个例子是一个类,该类除了打印由两部分构成的名字之外,什么也不做。
Unlike, for example, a class-cast exception, a null-pointer exception says nothing about what was expected instead of the null pointer.
例如,不像一个类转型异常,空指针异常不给出它所需要的内容的任何信息,只有一个空指针。
Because our example application included a business delegate class, we placed the validation logic there.
因为示例应用程序包含了一个业务委派类,所以我们在其中放置了验证逻辑。
The previous example showed why a specific class was loaded.
上一个例子说明了一个特定类为什么会被加载。
An entertaining example comes from a recent class exercise where a group modeled a commercial aircraft.
一个有趣的例子来自近期一组人员建模一个商业航行器。
应用推荐