We can define generic methods in one place and mix them into our Objects across multiple Class types while limiting access to sensitive methods on a per Object basis.
我们可以在一个地方定义通用的方法,然后将它们混入跨越多个类类型的对象,同时限制对每个对象为基础的敏感方法的访问。
The test class represents the usual unit of test execution that occurs while you are developing, and so we should consider carefully how many tests to include in any one class.
测试类表示在开发时发生的测试执行的常见单元,所以我们应仔细考虑任何一个类中包括了多少个测试。
We have this offer business the one I talked with the computer class, then we have merchant business, we sell our software and our store to other merchants who want to sell in our store.
我们提供这种业务,我和计算机班业务,商业业务,我们销售软件和其他商店给商人,那些想在我们商店里卖东西的商人。
One of the biggest problems when integrating this code is that it may not mix very well with existing code; function or class names may clash with what we are using already in our application.
在集成这些代码时,最主要的问题之一就是这些代码可能无法恰当地融合到已有代码中;函数或类名可能与应用程序中已经在使用的内容冲。
One, we would have each proper class in its own table, and use views to build a common table for content.
第一,我们在类自身的表中放置每个类,使用视图为内容构建通用表。
Yet if that period was unusually kind to the middle class, the one we are now in the midst of appears unusually cruel.
如果说那个阶段对中产阶级是非同寻常的温馨记忆,那么我们现在所处的阶段就是残酷的现实。
At School we were then in the class below the highest one.
在学校里,我们的班级已仅次于最高班。
I also wanted to show you the coconut passion cake we made in cake class, which is one of my favorite.
我也想向你展示一下我们在蛋糕班上做的椰果蛋糕,我的最爱!
She is the one who makes Matt and I sign in every morning after we get back from Math class at the high school.
因为我和麦德跳级到高中去上数学课,每天早上上完数学课后,高中派车把我们送回初中,这样回校后都要到她这里签到,所以彼此很熟。
In one case, we saw the "magic" declaration advise within a class body.
在一种情况下,我们看到在一个类体中有“奇妙”的advise声明。
We could again use XSL to do this, but instead we will create one last method for merging XML files in our XMLHelper class.
我们本来可以再次使用XSL 执行,但我们将为 把 XSL文件合并到 XMLHelper类中最后创建一个方法。
One we referenced earlier is the implementation of a doubly linked list in the Spl class SplDoublyLinkedList.
我们前面提到一个类就是在spl类spldoublylinkedlist中实现的双重链接列表。
We made our database a singleton in order to limit the database class to only one instance.
我们将数据库当作一个单实例对象,以将database类限制为1个实例。
In school, one of them asked to borrow my eraser in math class. After that we quickly became friends.
但,在学校上数学课的时候,他们中的一个向我借橡皮胶,从此以后,我们很快就成为死党,我就成为他们圈子中的一员干将。
"It was wonderful," explained the man, "not only were we on time in one of TWA's brand new planes, but it was overbooked and they bumped us up to first class."
“太棒了”,男子说道,“我们不仅赶上了TWA公司的一个新开的品牌航班,而且由于航班超员,我们被赶到了头等舱。”
The principle implies that A class should have one, and only one, reason to change. In CSS we have.
这意味着在CSS中我们的一个类应该有一个原则而且只有一个理由去改变。
Our class made the record that no one can break, because we got zero in the match.
我们班打破了一个没人能破的记录,因为我们在比赛中得了零分。
In one class, when our English teacher explained the word fortune, she asked us how we think about taking a fortune, which means marring a fortune.
在一次课堂上,当我们的英语老师讲解财富这个词的时候,她问我们是如何看待由于婚姻获得的财富。
To pretend there was an impenetrably thick glass wall between us in the one class where we were forced together.
当我们被迫坐在一起上课的时候,假装我们之间有一堵无法穿透的,厚厚的玻璃墙。
In large letters, alone on one entire page, you see: "If the NHS was performing at truly world-class levels we would save an extra 5,000 lives from cancer every year."
整整一页篇幅,一行行大号字赫然在目:“假如NHS达到真正的世界级水平,我们每年将多救治5000例癌症患者。”
We'll learn one technique that helps when we discuss sealed class hierarchies in the section called "sealed class hierarchies" in Chapter 7, the Scala Object System.
我们会在《第7章-Scala对象系统》的“完成类(sealedclass)结构”讨论完成类的结构时学习到其中一种技术。
And finally, we can rewrite our test so that the tested object USES the MockTransaction class rather than the real one, as shown in Listing 6.
最后,我们可以重写测试,以便被测试的对象使用mocktransaction类,而不是使用实际类,如清单6中所示。
我们在一班。
We are in Class One, Grade Seven.
我们在七年级一班。
We have only been shown one class period at the beginning of first year in this subject.
我们只见识过一年级的第一课是什么样子。
Now, we have beginners and intermediate students in one class and the more advanced students in another.
现在,我们将初学者和中级学生放在一个班级,把其他的孩子放到另一个班级。
That's like saying we should only have one drug of any class in the market.
这好像是说在任何种类的药物市场上我们应该只有一种药物。
Definitely Professor Zhao is one of the best teacher in the Department of EconomicMangement, We are very lucky to be her class.
肯定的。赵老师是经济管理系最好的老师之一。我们能上她的课真是很幸运啊。
Definitely Professor Zhao is one of the best teacher in the Department of EconomicMangement, We are very lucky to be her class.
肯定的。赵老师是经济管理系最好的老师之一。我们能上她的课真是很幸运啊。
应用推荐