A computer virus is much like our biological viruses. A computer virus is a produce of the information age. A virus is man made and is also known as a piece of code with set instructions, once the conditions are met that cause the code to start working, then those set instructions are carried out. A well written computer virus can do anything from delete a simple file to the reformatting of an entire hard drive.
To get a better understanding of how this works we will need to go back to the first sentance in this article. A biological Virus. Think of a foreign body in our bodies, if the foreign body is strong enough and our antibodies are not, then that virus will take over, think common cold, spread via touch or air.
Once this virus is inside of us, we become weak, our noses start to run and our bodies begin to hurt, now in the information age, we do not feel the physical strains on our computers, but we do notice them, if you know where to look and still remember how your computer was when you first bought it.
One thing to know is that a computer virus if written to do so can attach itself to all your programs, replicating itself and attaching to more programs.