验证:在数据模型中,包含验证数据对象实例的数据的例程。
Validation: in the data model, include the routines that can validate the data that forms the instance of the data object.
相反,它将直接为您创建该属性——在这个特定的数据对象实例上。
Instead it simply creates the property for you — on that particular instance of the data object.
设想一下您需要显示餐馆甜点的有关信息,其对应的数据对象实例可以包含下列值。
Imagine you need to represent information related to a dessert in a restaurant. A particular instance of a Data Object could hold the following values.
应用推荐