We can spot code that isn't encapsulated if related methods and properties aren't grouped together. How can we encapsulate this code?
eat() inside the dog objectdog and dogActions properties of a larger objectMove eat() inside the dog object.