How do you keep dog from eating the cat food and cat from eating the dog food?



I have a cat and am planning on getting a dog. My cat loves food and has eaten from my friends dog food when she was visiting. I want to get a Golden Retriever and Ive heard theyre big on eating. How would I keep the food away from one another?