So, I was going through the Accessing/Updating Objects challenges. What I noticed was that when an object is updated, the actual object (in the code) doesn’t seem to change, as reloading the screen shows the original values again. My assumption is that updates and additions are only temporary for time the function is invoked. So, how would these objects be permanently altered? Would they be somehow output to a database input routine?
I wanted to have a go at employing different parts of what I learnt about objects.
Here’s what I coded: