Member is visible only within the class in which it is declared.
只有在已宣告成员的类别内,才可以看见成员。
Member is visible only within the class in which it is declared and to any derived classes of that class.
成员仅在声明它的类内可见,并对该类的任何派生类可见。
A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.
具有受保护可视性的成员函数可以由与该成员函数在同一个类中定义或其任何子类中定义的其它任何成员函数调用。
A member function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
The work is not nearly as intellectually challenging as what they will face in the OOAD class, but it lays the groundwork for team collaboration, which is a major learning goal.
在智力挑战层面上这一工作与他们将在OOAD课上面对的东西联系并不密切,但是它为团队协作奠定了基础,这是一个主要的学习目标。
The next input screen is for defining your action class, which package it is in, and all the other elements to create an action with input and output parameters.
下一个输入屏幕用于定义操作类、该类所在的包,以及用于创建带有输入和输出参数的操作的所有其他元素。
Startup time overhead to populate a new cache (which I discuss later in this article) is not significant, as each class simply needs to be relocated into the cache as it is defined.
填充新缓存导致的启动时间开销(在本文后面讨论)并不显著,因为每个类只需在定义时重新定位到缓存中。
Already congressional hearings in the US are shining an unforgiving light on both the extraordinary opulence of the financial super-class and the questionable means by which it was accrued.
在美国,对金融超级阶层的异乎寻常的财富和他们积累这些财富的方式,国会的听证会已经开始表明不认可的态度。
I can't remember which airline it was, I was sitting in first class in seat A1. Facing the toilet.
另一次是(我记不起是哪个航空公司了)我坐头等舱在a1的座位,结果是对着厕所的。
If the same class attribute was defined several times in the code, it will show you all the definitions and which ones were overridden and which are being used.
如果相同的类属性在代码内多次定义,它会显示所有的定义以及哪些定义被覆盖了、哪些定义正在使用。
In fact, it seems that many Brits, given the choice, prefer to identify with the class they were born into rather than that which their jobs or income would suggest.
事实上,如果能够选择的话,似乎很多英国人都倾向于把自己归人到自己出生时所属的那个阶级,而不是他们的工作或收人所显示的那个阶级。
If you map a UML class in the mapping model to a different name, you change the name of the file in which it will be generated but not the generated class in the file.
在映射模型中,假如您想将一个UM l类映射为另外的名称,您需要改变其将要生成文件的名称,而不是类名。
To determine whether or not a class belongs in a domain package, you need to analyze the collaborations with which it is involved to determine its distribution type.
为了确定一个类是否属于一个域包,您需要分析它确定分布类型所涉及到的协作。
What's more, in pure DBC terms, a class that abides by DBC rules has a contract with the outside world about the internal consistency that it will maintain, which is known as the class invariant.
另外,在纯dbc术语中,遵循dbc规则的类针对其将维护的内部一致性与外部世界有一个契约,即人所共知的类不变式。
Subaru was the sole automaker this year that had a winner in every vehicle class in which it competes.
斯巴鲁是今年唯一的每一种生产的车辆都大卖的汽车厂商。
This feature is richer than function Pointers because it allows the inner class instance to retain a reference to the environment in which it was created.
该特性比函数指针更强大,因为它允许内部类实例保持对创建它的环境的引用。
In some cases, you might find it useful to further restrict a class-based rule based on the element to which the class is attached.
在某些情况下,可以根据类所在的元素进一步限制基于类的规则。
It USES the class name Date, which is a fairly generic class name and could very well exist in other places in our code.
它使用类名Date,这是一个非常通用的类名,并且可以很好地切入到代码中的其他位置。
It also defines a Struct class for defining arbitrary data aggregations, and the special class any which can be used to represent any built-in or derived type and thus is the basis of dynamic typing.
它还定义了一个struct类,用来定义任意的数据聚合,此外,还定义了特殊的类any,它可以用来表示任何内置或导出类型,因而它也就成了动态类型化(dynamic typing)的基础。
This method finds the class file for the Derby embedded driver, which must exist somewhere in your CLASSPATH, then loads it into the JVM.
这个方法寻找Derby嵌入式驱动程序的类文件(这个文件必须在CLASSPATH中存在),然后将它装载到JVM中。
If the table doesn't exist, it invokes the database initialization code, ResourcesDatabaseInitializer, which in this example is a utility class that initializes the database.
如果该表不存在,则它调用数据库初始化代码ResourcesDatabaseInitializer,该代码在此示例中是初始化数据库的实用程序类。
The notable exception in this class is Math.random , which intentionally returns a different value every time you call it.
此类中值得注意的特例就是Math . random,它会刻意地在您每次调用它时返回一个不同的值。
The powerful as operator in Groovy takes a code block and generates a new class that implements the interface, which you can then call as if it were a concrete class implementing the interface.
Groovy中强大的as操作符接收一个代码块并生成一个新类来实现该接口,您可以像调用实现该接口的具体类一样调用它。
If the class cannot be found, that means that it was not loaded by any of the class loaders present in the system (which would usually result in a ClassNotFoundException).
如果找不到某个类,说明系统中的任何一个类装入器都没有装入它(通常会形成ClassNotFoundException异常)。
You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.
可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。
It takes XML data as input, and it converts the XML string into a SimpleXMLElement object, which is sent as input to another (recursive) function in this class.
它接收XML数据作为输入,将xml字符串转化成SimpleXMLElement对象,然后发送给该类的另一个(递归)函数作为输入。
When the JSP page is loaded, it calls the Action class, which ACTS as a Controller in the MVC design pattern.
JS p页被加载时,它就调用action类,这个类在MVC设计模式中充当控制器角色。
To fix it, I'm going to refactor the two methods I already have, which is easy because I have so little code thus far. The refactored Classifier class appears in Listing 9.
为了解决此问题,我将重构已有的两个方法,这很简单,因为到目前为止我只有很少的代码。
That suggests that this method shouldn't be in this class, so I'm going to refactor it upward to a BoundaryBase class, which ACTS as the parent of the PartDb class.
这说明这个方法不应该放在这个类中,所以我要把它重构到partdb类的父类BoundaryBase中。
To invoke an Action class, you need to force the StrutsTestCase framework to indirectly call it through a path, which is defined in the struts-config.xml file.
要调用Action类,需要强制StrutsTestCase框架通过一个路径间接地调用它,这是在struts - config . xml文件中定义的。
应用推荐