A very, for me, extremely striking example of this question occurred in this very class.
对我来说,一个关于这个问题的,极其显著的例子发生过在这门课上。
The previous example contains a class object and string.
前面的示例包含一个类对象和字符串。
An example of referring to a class in a namespace is shown below.
下面给出了一个例子,展示了如何在名称空间中引用类。
Listing 11 is an example of accessing a private method in a class.
清单11展示了对类的私有方法的访问。
Figure 2 is a UML class diagram of the object model for the example.
图2是该示例对象模型的uml类图。
As a simple example, consider the following class.
作为一个简单的例子,考虑以下类。
With this example, I created a base class to handle the property changed events.
用这个例子,我创建了一个处理属性改变事件的基类。
Type a name for the new class diagram. (for this example, use the name Main.)
为新的类图键入一个名字(对于这个实例,使用名字Main。)
You just write a test class (TC_Person in this example) that subclasses TestCase.
您只是写了一个测试类(在该示例是tC _ Person),它是TestCase的子类。
Create a transform class (see the example in Listing 1).
创建一个转换类(请参见列表1中的例子)。
For example, one class may open a stream and pass it to another class to read information from a file.
例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
For example, a class describes a physical object in the real world.
例如,一个类描述了现实世界中的一个物理对象。
For example, when it sees a tag, it instantiates the element class.
比如,每遇到一个标记,就实例化一个元素类。
Our first example is a class that does nothing more than print a two-part name.
第一个例子是一个类,该类除了打印由两部分构成的名字之外,什么也不做。
The previous example showed why a specific class was loaded.
上一个例子说明了一个特定类为什么会被加载。
As an example, suppose that you're writing the documentation for a class library.
例如,假定您正在为一个类库编写文档。
For example, it's obvious that a UML class will become an XML element.
比如,显然UM l类应该转化为xml元素。
A simple example of a business domain-driven class hierarchy.
业务域驱动类的层次结构的一个简单例子。
For example, methods, functions, a class, or a module of complex logic might be identified.
例如,它将bug目标锁定为方法、函数、类或包含复杂逻辑的模块。
For example, exposing a class as a Web service.
例如,可以将一个类公开为Web服务。
Enter a class name (for example, Suggestions).
输入类名(例如,Suggestions)。
For example, a generic class JSplitPane may create an instance of Scrollable.
例如,泛型类JSplitPane可以创建Scrollable的实例。
For example, a UML class may have an attribute of a System.String type.
例如,一个UM l类可能具有System .String类型的属性。
For example, there is also a SelectionAdapter class that implements SelectionListener.
例如,还有一个selectionadapter类,这个类实现了SelectionListener。
For example, a few of the fields in the ContactDatabase class are listed below.
例如,下面列出了ContactDatabase类中的几个字段。
For example, suppose we want to add a factory method to a List class.
例如,假定想将factory方法添加到list类中。
An example of a class using contracts is.
以下为一个使用契约的类。
In this example, a single net.sf.cglib.proxy.Callback is configured for the net.sf.cglib.proxy.Enhancer class.
在这个例子中,我们为net . sf . cglib .proxy . Enhancer配置了一个单一的回调(callback)。
For example, to add a protected field of type Publisher to the ElectronicMedia class.
例如,添加一个类型Publisher的protecte d域到electronicmedia类。
A classic example is to compare a simple class in Java and scala.
找个经典的例子来比较一下看看。
应用推荐