英语 » 德语

词条„accessor“在英语 » 德语中的译文 (跳至 德语 » 英语)

ac·ces·sor [əkˈsesəʳ, -ɚ] 名词 计算机

accessor
accessor

单语范例(未经PONS编辑处理)

英语
Often a setter is accompanied by a getter (also known as an "accessor"), which returns the value of the private member variable.
en.wikipedia.org
The visibility of the two methods may be different; it is often useful for the accessor to be public while the mutator remains protected, package-private or internal.
en.wikipedia.org
So for example, accessing the data value of an object property must be done via an accessor method.
en.wikipedia.org
In most languages, properties are implemented as a pair of accessor/mutator methods, but accessed using the same syntax as for public fields.
en.wikipedia.org
If the variables name and owner were declared as public, the accessor and mutator methods would not be needed.
en.wikipedia.org
Cartridges were moved into and out of read stations by two motorized accessor arms, electrically connected via flat cable on a drum.
en.wikipedia.org
For example, a parameter may be made read-only simply by defining an accessor but not a mutator.
en.wikipedia.org
The method used to access an attribute is called an accessor.
en.wikipedia.org
The accessor function has the same name as the field, which is why it's unnecessary in the above example to explicitly declare accessor methods.
en.wikipedia.org
All other access must go through the accessor methods.
en.wikipedia.org

是否要添加一些单词、短语或翻译?

请发送新条目。

在双语词典中的"accessor"译文


语言 Deutsch | Български | Ελληνικά | English | Español | Français | Italiano | Polski | Português | Русский | Slovenščina | Srpski | Türkçe | 中文