1

You're asking a rather specific coding question, and not actually for your code to be reviewed. However, I'm going to, because if you want to learn OOP, you might aswell learn what not to do.
Your basic question is answered in the static-tag wiki which, cough I wrote cough.
Be that as it may, yo...