I’m solving this lesson:
I thought I was grasping it well until the creation of a class Book which cannot add any rating to it since ratings is undefined (although I set it equals to in the Media costructor).
What am I doing wrong?
Here’s the link to my code:
Neither a Media or a Book have ratings initialized…
Thanks for the help!