Cows and goats are ruminants with four-chambered stomachs that digest tough plant material. Their diet consists mainly of grasses, hay, leaves, twigs, and stems. They also eat grains such as corn, oats, and barley, legumes such as soybeans and alfalfa, and sometimes fruits and vegetables.