There are also different types of stock usually referred to as common stock and preferred stock. Common stocks are usually given dividends (either a cash dividend or a stock dividend. Yes you can choose to get more of a companies stock instead of cash if the company allows it) and voting rights. While Preferred stocks are typically more expensive but have the catch that they are guaranteed a fixed amount of dividends in a given year.
So lets say I have 10 people who own enough preferred stock that I need to give out 1 annual payments of cash too. Then I have 100 people who have common stock who I told I can give dividends too. Each preferred stock owner is guaranteed $1,000 each in cash for their dividends. So I set aside $10,000 bucks that $10,000 is guaranteed to go to the preferred stock holders no matter what. If I set aside $11,000 the $10,000 will go to the preferred and the left over money will be split among the common stock holders all at once.