What is the function of viral nucleic acid?

The viral nucleic acid (Either DNA or RNA) has the genetic codes for the synthesis of to produce new , i.e, virus’ s genome. When a virus finds a host cell, the nucleic acid is injected into the host cell. The viral nucleic acid invades the nucleus and instructs the cell to make proteins which are assembled to produce further virus cell.