Let's see an example of where some private variables will be useful. Consider this subroutine.
如下示例展示私有变量在哪里会很有用。
Instead, I create the class and quickly type the private variables I'll be using in the class, like those in Listing 1.
相反,我创建类并快速在类中输入私有变量,如清单1所示。
Tapestry must perform runtime class modifications to support instance variables, and may only do so for private variables.
Tapestry必须执行运行时类的修改来支持实例变量,并且只对私有变量。
应用推荐