See here:
https://en.wikipedia.org/wiki/Class-D_amplifier
It's not a new idea: there were attempts made in the 1930s to build such amplifiers using Thyratrons, but their switching-speed [or rather, the recovery-time after the gas had been ionised] was too slow.