getMyValue
from the class
MyStuff
, it is encouraged to spell out the entire method name! Leaving off only the get and set portion of the method name is common and also considered good practice:
MyStuff.MyValueGenerally, from the macro language, objects may also be reference by a digraph formed by the upper case letters in the name. For instance, you can write
MyStuff.MVto access the same getMyValue method discussed earlier.
FOO
will make that value visible by providing
getFoo()
or an isFoo()
method.FOO
that can be modified can make it modifiable
by providing a setFoo(..)
method.getFoo()
method but no setFoo(..)
method the value FOO
is said to be "read only."Java Experts Take Note: |
---|
![]() getFoo() , isFoo() , and setFoo(..)
methods follows the definition of a Java Bean. This provides for immediate compatibility
with all objects that follow the Java Bean specification.
|