Aller au contenu

accessor

Définition, traduction, prononciation, anagramme et synonyme sur le dictionnaire libre Wiktionnaire.
Dérivé de access, avec le suffixe -or → voir accessory.
Singulier Pluriel
accessor
\æk.sɛ.sɚ\
accessors
\æk.sɛ.sɚz\

accessor

  1. (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)