特性1:存取函数(accessor functions)的生成 软件开发有时会相当乏味。在很多应用中,常常需要来回重复相同的编码实践或模式,开发人员将大量时间花费在了重复编码上—...
基于12个网页-相关网页
应用程序的SQL语句被编译之后,就可以转化为相应的存取函数,从而实现对数据库的访问。
The SQL statements in an application program are compiled to the corresponding functions and through these functions the application program accesses the main memory database.
最后,正如stats函数的两次调用所示,tuple值可作为一个tuple存取,也可将其解包为各自的分量。
Finally, as shown in the two invocations of the stats function, the tuple values can be accessed as a tuple or unpacked into their constituent parts.
然后通过set和get存取器函数公开这些字段,确保set函数将其更改发布到属性更改支持机制中。
Then expose these through set and get accessor functions, making sure that the set functions publish their changes to the property change support mechanism.
应用推荐