I've learned that using the deep copy in inheritance fixes the problem when you're inheriting a child object when later modifying a child's property, you're changing the parent's property as well because it points to the same object.
I read this awesome book but I'm very confused about what this code means:
Sorry if I confuse anyone in my code comments. It would be appreciated if anyone can just walk me through the use of the meaning of the code inside the for-in loop.
This type of code looks advance and very hard to analyze.
Is this code important to learn?
Thanks in advance