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 |
http://mindprod.com/jgloss/accessormethods.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\accessormethods.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.218.3.204] |
| |
Feedback |
You are visitor number | |