支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.
记录级访问类创建、读取、更新和删除IBMi文件和成员。
The Record-level access classes create, read, update, and delete IBM i files and members.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
API工具现在可以分析系统类库的使用情况及代码访问运行时不存在的成员时所产生的问题。
API tools can now analyze use of system libraries and create problems when code accesses members that may not be present at runtime.
不管您在重构时为number成员所选择的访问选项是什么,当您考虑到此问题时,必须处理一组类。
Regardless of which access option you choose for the number member when refactoring, you must deal with a network of classes when you think about this problem.
AspectJ中典型的joinpoint包括方法调用、对类成员的访问以及异常处理程序块的执行。
Typical join points in AspectJ include method calls, access to class members, and the execution of exception handler blocks.
对这个动态类我想做的最后一个改进,是用成员变量访问字段,而不是用笨重的get _和set _操作符。
One final improvement I want to make on this dynamic class is to use member variables to access the fields, instead of the clunky get_ and set_ operators.
Persistent类将自动创建必要的函数(例如,$equation->answer())来访问数据成员。
The Persistent classes will automatically create the necessary functions ($equation->answer(), for example) to access the data members.
将每个测试实例与它要测试的类放在同一个包内,以获得对包成员和保护成员的访问权。
Put each test case in the same package as the class it's testing to gain access to package and protected members.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
这种方法的一个有趣的副作用是允许通过闭包访问类的私有成员和受保护成员,这有利于对类执行单元测试。
One interesting side effect of this approach is that it allows us to access private and protected members of a class via a closure, which can be handy for unit testing classes.
请注意,当一个类是嵌套类的时候,它可以访问其外层类的成员。
Note that when a class is nested, it has access to the outer class's members.
当你上溯到基接口时,你只可以访问由那个接口所指定的成员,就像上溯到基类那样。
When you upcast to a base interface, you can only access the members specified by that interface, just as for upcasting to base classes.
用户也可以使用businessList 类提供的全部 get方法来访问成员数据。
The user can continue to extract data from the businessInfo object using any of its access methods.
继承是一种方法,通过它,类的对象可以访问以前精确定义过的类中的成员变量和函数,而不用重新声明那些定义。
Inheritance is the means by which objects of a class can access member variables and functions contained in previously defined class, without having to restate those definitions.
当某个类比其成员之一具有限制性更强的访问时,类访问级别将优先。
When a class has more restricted access than one of its members, the class access level takes precedence.
当派生类的成员和基类成员名字相同时,派生类的成员屏蔽了对基类此成员的直接访问。
A derived-class member with the same name as a member of the base class hides direct access to the base-class member.
您可以访问类的成员在运行时动态。
成员对于任何可访问类而对可见性没有限制的代码都是可见的。
Member is visible to any code that has access to the class with no restrictions on visibility.
当前类之外的代码无法访问私有成员。
Code outside the current class cannot access private members.
掌握类中成员的访问机制和方法。
你可以通过使用一个扩展方法来扩展一个类的功能,但只能使用你有权访问的类成员。
You can extend the functionality of a class by using an extension method, but using only the class members that you had access to anyway.
一个成员声明为static,那么他是不可以被这个类的实例来访问的(虽然静态方法可以)。
A member declared as static can not be accessed with an instantiated class object (though a static method can).
如果想要让某个公共类的方法仅限于由同一个类的成员访问,该采用哪一个访问修饰字实现这一目的呢?
You want to limit access to a method of a public class to member of the same class. Which access modifier accomlishes this objective?
派生类能够恢复继承的成员的访问级别,但是改变基类定义的访问级别,增加或者减少都是不可以的。
The derived class can restore the access level of an inherited member. The access level cannot be made more or less restrictive than the level originally specified within the base class.
如果形参是基类的引用,就只能比较基类中出现的成员,我们不能访问在派生类中但不在基类中出现的成员。
If the parameter is a reference to base, we can use only members that are present in the base class. We cannot access members that are in the derived class but not in the base.
使虚函数内联的主要原因在于类定义,主要是方便的原因,比如说成员访问函数。
The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e. g., for accessors and mutators.
声明类里的静态类成员或者静态方法可以是这些类成员或者方法在不实例化的情况下直接被访问。
Declaring class members or methods as static makes them accessible without needing an instantiation of the class.
一个类中定义的成员变量只能被同一包中的类访问。
A member variable defined in a class can be accessed only by the classes in the same package.
一个类中定义的成员变量只能被同一包中的类访问。
A member variable defined in a class can be accessed only by the classes in the same package.
应用推荐