I would be asking my instructor this question be she is not available
How do I make “n” available from anywhere inside the class? I need to
keep the values in n from call to call.
When calling the method “pt”, “n” acts as if it was not declared above.
I get -1 instead of what I wish for … 99.
Thanks in advance,
puts “hi there”
t = Test.new