A class code is a number assigned to an industry directly related to the risk of that industry. These codes are then used by insurers to calculate premiums for general liability.