iITP2 - OOP Tutorials - Inheritance - Private, Protected, and Public

In our GoodDog class we have one operation that takes place that we
could move into a private method. When we initialize an object, we
calculate the dog's age in Dog years. Let's refactor this logic into a
method and make it private so nothing outside of the class can use it.