Data management

I have been working on a Space Invader clone and was wondering what is the best way to keep copies of the same data to a minimum. Say I'm working on a container holding invader sprites, is it better to:

A) Have the container in main, use a setter to have a pointer in the class point to it then operate through that pointer

B) Pass the container from main by reference to various functions to work on it.

C) Make the container a pointer in the class itself and use a getter to pull it out.

D) Non of the above.

E) I'm not sure what I'm talking about and need to read up on something [insert something]
Topic archived. No new replies allowed.