class-list
10.Forexample, if you have a bank account class with a field that representsthe current balance and a field that contains a list of all depositsand withdrawals since the opening of the account, then you would have aclass invariant that states that the value of the balance field isequal to the total of all the deposit values so far minus the total ofall the withdrawal values so far.
同义词辨析
辨析1:
这些名词均含“课”之意。
class : 从“班级”引申指学生在一起上课,还可表示“(一节)课”。
lesson: 主要指教材中的一课或每次授课的单位时间。
lecture: 指讲课。
course: 指在一段时间内教完或学完的完整的课程。
辨析1:
这些名词均有“级,等级”之意。
class : 含义广泛,指人或物按优劣划分的等级,也指学校中的年级或班级。
degree: 指程度、范围不同,社会地位的高低。也可指形容词或副词的级。
grade: 指按地位或优劣划分的等级,既可指人又可指物。
rank: 指人在社会中的地位或等级,尤指军队中的军衔。
辨析1:
这些名词均有“种,类,类型”之意。
kind: 指性质相同,而且特征很相似,足以归为一类的人或东西。
sort: 普通用词,文体较kind随便,指对人或对事物进行的大概分类,有时含贬义。
type: 指客观界限比较清楚,有相同本质特点的同类事物,或指大致相似的同类事物。
class : 正式用词,指门类、种类或优劣等级;用于指动植物的分类时,表示“纲”。
classification: 指根据已经确定的类型对某一实物作鉴别和归类。
category: 书面用词,特指有确切定义的群体。
species: 书面用词,单复数同形。指生物分类上的种。
variety: 强调有各自的特点,形式不同,品质不同的种类。

