When a cell is infected with a virus, what is produced for future protection?

i thought it was good bacteria but i don't think a cell can do that. So confused.

Antibodies?