accessor
Apparence
Étymologie
Nom commun
Singulier | Pluriel |
---|---|
accessor \æk.sɛ.sɚ\ |
accessors \æk.sɛ.sɚz\ |
accessor
- (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) )