For IB's API, trading classes act as another layer for the unique identification of securities which otherwise might be ambiguous. On occasion something will trade with the same symbol, expiration, and currency, but hypothetically because of some corporate action it has a different multiplier.
They can be looked up in IB's symbol database.
List of E-Mini S&P (ES) futures options classes here.
If you want to be very specific, the LocalSymbol is a truly unique identifier and prevents other parameters such as expiration from needing to be entered into contract specification.