you get cash in lieu of leave. If you're half way through the year when you leave you'll get half the leave. If you have used more holiday than you are entitled to then they may take cash off you.
Some companies will insist you use the holiday time up, i am leaving my job in 4 weeks, my boss will pay up any unused holidays as he then gets more time from me to train my replacement.