I know that variables created in an instance method are released after the method is finished, but what about objects created in the method?
For example, what if I allocate and initialize 2 instances of a "Fraction" class in one of my methods to hold some local variables. Do I need to release those instances at the end of my method if I'm no longer using them (i.e. I don't return them)?
For example, what if I allocate and initialize 2 instances of a "Fraction" class in one of my methods to hold some local variables. Do I need to release those instances at the end of my method if I'm no longer using them (i.e. I don't return them)?