An all in one computer is basically a monitor in which you just plug in your mouse and keyboard, all the hardware are inside the monitor's case. While a desktop is made of a monitor + unit (motherboard, video card, RAM etc) in which you plug in your mouse and keyboard.