Dec-27-2017, 01:03 AM
Let you pass the list of classes as an argument to your function. Let also, inside this function you create a class and append it to the list in question. When you return from your function, the memory used for the function is cleaned. Is it safe still to use the class created inside the function and passed along the list? I think the answer is in affirmative still ...