- Start, creation of protocol and models Step 1
- Add baseFood property Step 2
- Add a maxAge property Step 3
- Create a toString method Step 4
- Owner property for pets and also access control Step 5
- Start, creation of single model Step 1
- Add baseFood property Step 2
- Add a maxAge property Step 3
- Create a toString method Step 4
- Owner property for pets and also access control Step 5
Both codes will run and delivery what is requested. However, the "good" example is more easy to maintain and open to changes without imply need to change everyone or impact on all user cases.