B unit
A cab unit is a carbody unit with a driving cab, or crew compartment. Thus, a cab unit is also always an A unit (a locomotive with a cab). By contrast, a carbody unit can be either an A unit, or a B unit (a locomotive without a cab).