The viral genome is the hereditary material of a virus.
As in prokaryotes and eukaryotes, the hereditary material is formed from nucleic acids.
Viruses have very diverse genomes. In other words, the differences between the genomes of different virus types are much greater than the differences observed in eukaryotes and prokaryotes.
Viral genomes can range from just two or three genes in length to over a thousand.