How does a Tankless Water Heater Work?

It is for the Whole House, not just a Kitchen Faucet