Like a microwave a Class D is either on or off as opposed to a Class A/B which is always on.Not really... a Class A/B output device is either partially-ON or completely off. (Class A outputs are always partially-ON). The "partially-ON" part is the hard one, no device is entirely linear doing that. So they basically do just "some more" or "some less" in relatively accurate but still uneven amounts.
But the very fast solid state devices are VERY good at being ON or OFF over precise times, so in at least that way that works better -- the power devices don’t have to be linear, they just have to be fast.