How do a transistor works as a switch?

Transistor operates as a switch by providing minute forward bias voltage or no voltage between base emitter junction.

If forward bias is zero volts; transistor collector current becomes zero or collector impedance becomes infinite. By applying minute forward bias voltage at base emitter junction, collector current flows in terms of amps. This is how transistor works as a switch.