Same gas generator core, three completely different ways of turning that core's power into thrust — and the split all comes down to one number: bypass ratio.
All three engine types share the same fundamental core: a compressor raises intake air pressure, fuel is burned in the combustor, and a turbine extracts just enough energy from the hot gas to keep driving that compressor. What each design does with the leftover energy is what makes it a turbojet, a turbofan, or a turboprop. A turbojet sends essentially all of it out the back through a single exhaust nozzle as high-velocity jet thrust. A turbofan uses an extra turbine stage to drive a large ducted fan, splitting the airflow into a fast "core" stream and a much larger, slower "bypass" stream around the outside. A turboprop takes that idea further, using nearly all of the core's spare power to spin an external propeller through a reduction gearbox, with only a small residual jet contribution. The single number engineers use to describe where an engine sits on this spectrum is the bypass ratio — the mass of air that goes around the core divided by the mass that goes through it.
Bypass ratio (BPR) is defined as the mass flow of bypass air divided by the mass flow through the core: BPR = ṁ_bypass / ṁ_core. A turbojet has BPR ≈ 0 — no bypass duct at all, every kilogram of air goes through the hot section. Modern high-bypass turbofans on airliners run BPR from roughly 5 up to 12 or more on the newest geared designs, meaning five to twelve times as much air flows around the core as through it. Pushed to its logical extreme — replace the ducted fan with an open, unshrouded propeller and drive it through a reduction gearbox — you effectively get a turboprop, whose "bypass ratio" in the same sense is enormous, often cited above 25 or 50. The underlying physics that explains every point on this spectrum is propulsive efficiency: it's highest when the exhaust (or propwash) leaves only slightly faster than the aircraft is already moving. A pure turbojet accelerates a small amount of air to a very high velocity — most of that kinetic energy squirts out the back unused. A high-bypass turbofan or a turboprop instead accelerates a much larger mass of air only a little, which is thermodynamically far more efficient — provided the aircraft is flying slowly enough that a fan or propeller can do that job without its blade tips going transonic and losing efficiency to compressibility drag.
It's a natural-sounding description, but it collapses a real engineering distinction. A turbofan's fan sits inside a shrouded duct (the nacelle), which lets its blade tips run supersonic locally without the efficiency collapse an open propeller would suffer at the same condition — that duct is precisely what lets turbofans cruise efficiently well above the speeds where turboprops become impractical, typically up to roughly Mach 0.85–0.9 on modern high-bypass designs. It is also not simply "a jet engine plus a fan" bolted on afterward — the fan is driven by its own dedicated low-pressure turbine stage, and the whole engine's core is sized specifically to produce exactly the shaft power that fan needs, not sized the way a standalone turbojet core would be. Meanwhile a turboprop's open, unducted propeller is a completely different and further extreme along the same bypass-ratio spectrum — mechanically similar to a turbofan in concept (a gas-generator core driving a downstream device that moves bulk air), but built and optimized for the very different, much lower speed regime where a duct isn't needed and an open propeller is simply more efficient and lighter.