Challenge
Expand the functionality of the UserDetails struct a little bit:
- Add an optional age property
- Add a new
update_agefunction to update a users age with a new value - Add a
whats_my_age()function to return the users age - Update the console application to test out your new functions
The starter code for this challenge is available on GitHub.
If you're struggling, you can find a solution on GitHub. Try it on your own first, if you're finding it difficult that's good. It means you're learning.