Hmm, actually viruses, worms and trojans are subset of malwares.
Code:
Malware is software designed to infiltrate or damage a computer system without the owner's informed consent.
Well, at least according to Wikipedia(can't find much credible sources nowadays online >.< )
How does a heuristic scanner works by the way?