You'll either save the information to a file or a database.
If saving to a file, the easiest way is to use serialization.

Serialization is very easy because it only takes a few lines of code to save all the values
from the class.