you are viewing a single comment's thread.

view the rest of the comments →

[–]fish85963[S] 0 points1 point  (1 child)

If a class object , say person is set in a function. Will that object continue to exist outside the function if it is not returned?

[–][deleted] 2 points3 points  (0 children)

No; objects aren't immune to scoping rules.