FYI, Class D is NOT digital, it is analog all the way through. There are no
zeros and ones.
Class D is analog, but the output is switched, so IMHO it's arguable to say there are no zeroes and one's. There are, in the output stage. However, the control of that switching state is purely analog.
There are also some amps like the latest Technics SE-R1, which are true digital amplifiers in that they convert everything from Analog to Digital, allow for phase and amplitude correction in the digital domain, and then produce an output based on a PWM output stage.