accessor methods : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

accessor methods

Normally you don’t make variables in your class public. Instead you provide public set and get methods for the variable. This lets you then later change the way the variable is stored, or add extra validation checks. These are normally called getters and setters, but the more adult sounding term accessors is coming into vogue.


This page is posted
on the web at:

http://mindprod.com/jgloss/accessormethods.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\accessormethods.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[34.237.245.80]
You are visitor number