accessor
التعريفات والمعاني
== Anglais ==
=== Étymologie ===
Dérivé de access, avec le suffixe -or → voir accessory.
=== Nom commun ===
accessor \æk.sɛ.sɚ\
(Programmation orientée objet) Accesseur.
The alternative to defining mutator and accessor methods, or property blocks, is to give the instance variable some visibility other than private and access it directly from outside the objects. Much finer control of access rights can be defined using mutators and accessors. For example, a parameter may be made read-only simply by defining an accessor but not a mutator. 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. — (Mutator method sur l’encyclopédie Wikipédia (en anglais) )
La traduction en français de l’exemple manque. (Ajouter)
==== Hyponymes ====
getter
setter
== Latin ==
=== Étymologie ===
Déverbal de accedo (« accéder »), dérivé de accessum, avec le suffixe -tor, -sor.
=== Nom commun ===
accessor \Prononciation ?\ masculin 3e déclinaison, imparisyllabique
Celui qui accède, qui approche.
Exemple d’utilisation manquant. (Ajouter)
=== Références ===
« accessor », dans Logeion, 2011- → consulter cet ouvrage