... 普通 函数 (regular functions, 译者注, 返里不访问 函数 等特殊 函数 相对) 大小写混吅, 存叏 函数 ( accessors and mutators ) 则 要 求 不 发 量 名 匹 配 : MyExcitingFunction() , MyExcitingMethod() , my_exciting_member_variable(),set_my_exciting...
基于12个网页-相关网页
Accessors and mutators are also added.
访问器和调整器也添加了进来。
Several other methods, including text , HTML , and XML , perform double duty as both accessors and mutators.
还有一些方法,包括text 、html和xml,作为accessor和mutator同时执行两种任务。
The Groovy version is much, much smaller because Groovy's default property semantics automatically define a private field with public accessors and mutators.
Groovy 版的代码要少很多很多,这是因为 Groovy 的默认属性语义用 public 访问器和存取器自动定义了 private 域。
应用推荐