Original: It has several sub-genres, including detective fiction (such as the whodunnit), legal thriller, courtroom drama and hard-boiled fiction.
Simplified: Sometimes, crime fiction is also in the science fiction or historical fiction genres, but usually they are separate.