Continuing with our Flight class example, we can describe the class's attributes with the attribute type information, as shown in Table 1.
继续我们的Flight类的例子,我们可以使用属性类型信息来描述类的属性,如表1所示。
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.
如果你观察一个四岁的孩子,例如我四岁的女儿,你可能要先研读皮亚杰的认知发展阶段理论,这一理论是我们在课堂上讲过的。
Figure 1 shows an example class model, which represents a company with employees and offices.
图1显示了一个实例类模型,它表示一家拥有雇员和办公室的公司。
In such cases, the SEI will be implied from the service implementation class, as in this example.
在这样的情况下,SEI将隐含于服务实现类中,正如这个示例中所示。
One example is class loading that invalidates monomorphic call transformations.
一个例子是使单态调用转换失效的类装载。
But even the rather rudimentary UML class diagram in this simple example provides a lot of information.
但是,即便是这个简单例子中极其基本的UM l类图,就已经提供了相当多的信息。
There are eight actions specified, defined below using the class names in our example implementation.
有八个指定的操作,下面的代码用我们示例实现中的类名定义了这些操作。
We need a main method to apply advice to our Example class, and print out some helpful status messages.
我们需要一个main方法将advice应用到我们的Example类,并打印出一些有帮助的状态消息。
These macros allow the module to project these attributes onto the target class -- Nonprofit in this example.
这些宏允许模型将这些属性投影到目标类中 ——本例中为 Nonprofit。
Figure 1 shows an example PDFBox class diagram.
图1显示了一个范例的pdfbox类图。
This method searches within the given parent test object, usually a browser page, for an object of a specified class, for example, Link, TextField, Listbox, and so on.
该方法在给定父测试对象(通常是浏览器页面)内搜索指定类的对象,例如,Link、TextField、Listbox等。
The example class in this article also includes the main function, but that is not a requirement.
本文中的示例类还包括main函数,但这不是必需的。
The rule class in this example will look for C++ code that declares multiple variables on the same line. For example
本例中的规则类,如同在同一行中定义多个变量,例如
NextGen example: Modified class loader.
NextGen示例:修改的类装入器。
If entries in the output keeps growing for a certain VP class (for example in the above output we have three entries for CPU VP class), we need to think of adding more VPs in this class.
如果某个vp类的输出条目持续增长(例如,在以上输出中,CPU vp类有3个条目),那么我们就需要考虑在该类中添加更多VP。
If you were to extend the application class for the example contact information application, it would look similar to Listing 13.
若为这个示例联系信息应用程序扩展这个application类,它应该类似于清单13。
No Listener interface is used; instead attributes that match the interesting event handler entry points defined by the class (for example, actionPerformed) are set to Jython functions.
没有使用 Listener接口,而是使用该类定义的匹配要注意的事件处理程序入口点的特性(例如actionPerformed)设置给Jython函数。
The customer class shown in Listing 3 is a good example of a class that USES setter injection.
清单3所示的customer类是使用setter注入的类的良好示例。
Figure 1 shows these terms with an example class named MyClass which is holding a HashSet that contains string objects.
图1通过名为MyClass的示例展示了这些术语,此示例具有一个HashSet,包含字符串对象。
Other information like DCE security level and transaction timeout can also be specified using this class. For example.
其它的信息(如dce安全级别及事务超时)也会通过使用该类来指定。
Let's make the goal more complex and add some conditional text rendering - for example, CSS class names for even and odd table rows.
现在让我们实现更复杂的目标并添加一些有条件的文本呈现—例如,命名偶数和奇数表行的css类。
For example, in the resource class, uncomment the method in Listing 23.
例如,在资源类中,取消清单23中的方法的注释。
For example, the proxy class could delegate the method invocation to any other object or even handle it itself.
例如,代理类可以把方法调用委托其他任何对象,甚至是处理程序本身。
For example, a class load from another location may not be trusted for access to the local filesystem.
例如,当从另一个位置加载的类访问本地文件系统时,我们可能不信任它。
For example, the same class is never added twice, even if it is loaded from many different locations.
例如,同样的类不会添加两次,即使它是从许多不同的位置装载的。
Listing 1 shows an example of how this class might be implemented using locks (synchronization).
清单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).
它被定义为单个的元素,因为单个类对转换的多个部分(举例来说,类、属性,和方法)做出贡献是可能的。
This article gives you a simple example of a small class hierarchy to illustrate this concept.
本文将提供一个小型类层次结构的例子,举例说明这个层次结构的概念。
This article gives you a simple example of a small class hierarchy to illustrate this concept.
本文将提供一个小型类层次结构的例子,举例说明这个层次结构的概念。
应用推荐