Though a middle-class person may "want to live like common people", they can never appreciate the reality of a working-class life.
虽然一个中产阶级可能“想要像普通人一样生活”,但他们永远不会领会到工薪阶层生活的真相。
To represent our customer, we'll use the generic class Person.
为了表示我们的客户,我们要使用通用类person。
For example, the class Person could be stated to be a subclass of the class Mammal.
例如,可以成声明“人”为“哺乳动物”的子类。
But it's a higher-class person, and i wish there's a way to make it more accessible to lower income people.
我很希望能够把门票价格降低一点、让更多低收入的人也能看到这样的戏剧。
I class myself as an ordinary working person.
我把自己归类为一名普通的劳动者。
One person in the group should be prepared to report back to the class on your discussion.
应由其中一名组员准备向全班汇报你们的讨论情况。
Ideas about social class—whether a person is "working-class" or "middle-class"—are one area in which changes have been extremely slow.
关于社会阶级的观念,判断一个人是“工人阶级”还是“中产阶级”,这是一个极其缓慢的变化过程。
As Pablo and I nervously waited for the results, I was told that my speech was so successful that I was the right person to be class president.
当巴勃罗和我紧张地等待结果时,有人告诉我,我的演讲非常成功,我是担任班长的合适人选。
Note how I adorned the Person class with the abstract keyword.
请注意,我如何使用abstract关键字装饰person类。
Adding notifications to your existing Person resource class.
向已有的Person资源类中添加通知。
I show that in my model by adding a separate Person class and creating associations to the Victim and Witness classes.
我通过以下方法在我的模型中展示这一点:添加一个单独的person类,并创建到Victim和witness类的关联。
As you add validation methods to the Person class, the call to valid? will automatically become smarter.
随着您向Person类中加入验证方法,valid ?会自动的根据这些方法进行验证。
Listing 4 provides enough information for Jenabean to save and load instances of the Person class reliably.
清单4为Jenabean提供足够的信息来可靠地保存和装载person类实例。
This is where almost every object-oriented programming textbook starts: you have a Person class with fields like Name and Age.
这就是几乎每一个面向对象的编程教材开始的地方:您具有包含类似Name和 Age 字段的Person类。
Knowing that Serialization allows for refactoring, let's see what happens when we decide to add a new field to the Person class.
既然已经知道序列化允许重构,我们来看看当把新字段添加到person类中时,会发生什么事情。
For example, when the Person class was created, it displayed syntax errors because one of its attributes, Address, was undefined.
例如,当person类被创建时,它显示语法错误是因为它的一个属性address没有定义。
In Listing 10, you can see the mapping code that maps an instance of the above-defined Person class.
在清单10中,您可以看到对上面定义的Person类的实例进行映射的代码。
Often this means the proxy will need to be an inner class of Person to have access to private fields.
这通常意味着代理需要是Person的一个内部类,以便能访问private字段。
Since the Person class is what the app's data access layer returns, it is definitely not suited for consumption by the UI.
由于Person类是应用的数据访问层返回的东西,它绝对不适合直接被UI使用。
Notice the class declaration for Person.
请注意Person的类声明。
PersonV2, shown in Listing 3, introduces a field for gender to the original Person class.
如清单3 所示,PersonV2在原先Person 类的基础上引入一个表示性别的新字段。
Obviously, I don't have a Person class yet so my test is having some trouble running — JUnit gives me a red bar.
显然,我还没有person类,所以运行该测试会出现问题—JUnit给出了一个红条。
There's a bit of code duplication in the Person class, but I'll leave that for a later refactoring exercise.
在person类中有一些重复的代码,但我把它留给稍后的重构练习。
So, for example, say you needed the list of children in the Person class to always be sorted by age.
例如,假设您需要person类中的孩子总是按年龄排序。
Listing 1 shows a Person class implementing Serializable.
清单1显示一个实现Serializable的person类。
The concrete DAO for the Person entity class should add finder methods that are specific to the Person entity.
Person实体类的具体DAO应该增加一个特定于Person实体的finder方法。
For example, you might have a table called Customer that inherits from a class called Person.
比如,有一个名为customer表,它可以从名为person类继承。
Consider a Serializable Person class that defines a friend of its own, as shown in Listing 1.
Serializable Person类定义了一个它自己的友元,如清单1所示。
The data model in the hello world application is simply a Person class with a name and an id property.
Helloworld应用中的数据模型仅仅是一个有name和id属性的person类。
Listing 1 is a recap of the simple Person class I've used in my introduction to db4o so far.
清单1重述了我在介绍db4o时一直使用的一个简单类person。
应用推荐