True wisdom is in knowing you know nothing - Socrates
True wisdom is in knowing you know nothing - Socrates
Matt Kohanek wrote:After a method in ClassA assigns some values, ...
Matt Kohanek wrote:... how do I get one of those values out in a subsequent method call in ClassB. So after ClassA is done, let's say user="user" is stored in UserClass.
Matt Kohanek wrote:I cannot do
because that sets all values to null.
Matt Kohanek wrote:I was just wondering if there was something like
Matt Kohanek wrote:My only answer so far has been to allocate some memory space (public interface TempValue{}) and in methodA, assign a temp variable with the value. Then when i want to use the value later in methodB, I have to reference the temp variable still stored in that memory space.
True wisdom is in knowing you know nothing - Socrates
True wisdom is in knowing you know nothing - Socrates
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
True wisdom is in knowing you know nothing - Socrates
True wisdom is in knowing you know nothing - Socrates
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |