Why do Bacteria differ from viruses because bacteria have?

Because bacteria have only DNA as genetic material but viruses have RNA or DNA as genetic material. viruses are harmful but most of the bacteria are useful.