On 3/8/06, rtilley firstname.lastname@example.org wrote:
How can I get to these variables outside of the class.
Elsewhere in your code:
Note that in the case of method-variables, you can use
the even easier shorthand of:
and then you’d get the value via:
where ‘@method_var’ would be the name of the instance-
variable whose value will be returned by the method named
Also note that you may confuse yourself by thinking of
@-variables as “method variables”. They are instance
variables. The same value is seen by all methods for
any given instance of the class.