What is the process for transferring shares to a nominee?

What is the process to transfer shareholdings to a designated nominee in case of death or inheritance?,