21.4. πŸ‘©β€πŸ’» Clean UpΒΆ

Congrats! We’ve solved the problem now, but our code isn’t very nice to read. We can clean it up now and remove the print statements.

We can also fix the comments so that they aren’t so obvious.

At this point, the code has been cleaned up fully - you could easily write the comments in a different way but this should be easy for other programmers to understand, and ourselves to understand if we come back to the code days, weeks, or months later!

Next Section - 22. Inheritance