We can spot code that isn't encapsulated if related methods and properties aren't grouped together. How can we encapsulate this code?

Move eat() inside the dog objectMake dog and dogActions properties of a larger object

Move eat() inside the dog object.