We also used an instance variable to store a reference to the mock object.
我们还使用了实例变量来存储对模仿对象的引用。
The test variable is used to reference data throughout a test and between tests.
测试变量用于在测试之间以及测试之中引用数据。
See how I was able to reference the instance of ServletContext via the application variable?
注意我是如何通过application变量引用ServletContext的实例的。
Hence a variable of a class type can reference an instance of any descendant type.
因此,类类型的变量可以引用其所有子孙类型的实例。
How to reference a variable without knowing the specific type?
如何引用变量而不知道具体的类型?
The association of a variable with an object is called a reference.
一个变量和一个对象的关系叫做引用。
The association of a variable with an object is called a reference.
一个变量和一个对象的关系叫做引用。
应用推荐