People having sex with corpses usually do so after first creating the corpse by murdering someone. I think.
That certainly happens. But it's far from the only classification.
Turns out, there's a ten-tier classification system for necrophiliacs.
1.) Role players
2.) Romantic necrophiliacs

boggled

3.) People experiencing necrophiliac fantasy, hallucination, delusion, etc. (Sometimes called "necrophiliac miracle"



)
4.) Tactile necrophiliacs (Need to touch a dead body in some way for sexual gratification)
5.) Fetishistic necrophiliacs
6.) Necromutilomaniacs (People who, while they don't actually have sex with dead bodies, get sexual pleasure from mutilating or desecrating a dead body in some way



!!!!)
7.) Opportunistic necrophiliacs ("Hey, it's there, might as well **** it!"

)
8.) Regular necrophiliacs (Strongly prefer sex with corpses over sex with living partners - might not even enjoy sex with living partners at all)
9.) Homicidal necrophiliacs (The type to whom Trebuchet was referring)
10.) Exclusive necrophiliacs (Completely unable to perform intercourse with anything but dead bodies; the rarest type of all)
Here's a fun article which goes into more detail than you probably ever wanted to know about these categorizations, as well as some of the psychology theorized to be behind this extremely taboo fetish.
http://www.anilaggrawal.com/ij/sundry/news_and_notes/316_A new classification of necrophilia.pdf
And now, I think I need to go have a shower.
