DNA and RNA are the genetic materials out of which DNA universally serves as the carrier of hereditary information from one generation to another in all the organisms except viruses. Among viruses, some carry DNA (either single or double stranded) as hereditary material while some have RNA (either single or double stranded) as hereditary material. But they never have both DNA and RNA. Bacteriophages are DNA viruses thus they resemble fungi in having DNA as herditary material.