Contractual Basis: The dividend payout must align with the terms specified when the shares were issued. If the issue terms state that Class A gets $X\%$ and Class B gets $Y\%$, the company must comply with those terms.
Approval: Any dividend payment—whether equal or different—must be recommended by the Board of Directors and approved by the shareholders as per the company's policy and Articles of Association.
Flexibility: While a company can choose to pay the same rate on both classes, it is not legally obligated to do so unless the articles or the specific terms of the share issue mandate equality.