The (not-so) big OOP questions thread!

The hardest thing to learn in programming (right after the syntax) is definitely OOP. The thread will answer questions related to OOP. Making a thread like this could be a very good idea, because you at a later point can come back to this thread to get some more help!

How to ask a question:

You write “Question! (My quetion)” in the beginning of a post and then write the actual problem/question.

Example:

Question:

Question! How do I access static functions in my class?

I need help to access the static function init(); in the Balloon class, from the Circus class!

Answer:

Anwser to: How do I access static functions in my class?

You write the class name + “.” then the function. This code, for example will excecute the init(); function from any other class:

Balloon.init(); // run the function

If you have any questions, POST THEM HERE.