I'm finding the concept of memory leaks within inner classes fairly difficult to grasp. Most of the answers I find are within the context of java which further confuses a beginner like myself.
Most answers to similar questions here redirected to this: When Exactly is it leak safe to use anonymous inner classes?
Again, the answer here was difficult to get across for someone fairly new to OOP.
My question(s):
Why do memory leaks occur with the inner classes?
When using inner classes, what are the most common memory leaks that can occur?
What are remedies to memory leaks that one can come across frequently?