38
The difference between an instance variable and a static variable.
(programming.dev)
Young man, could.you explain your shitpost?
I said, young man, what the fuck was that post?
int variable => local scope => my int from the perspective of an instance
static int variable => class scope => our int, for all instances of a class
You know what's funny? In PHP it's backwards :D
well of course it is!
I hate how long it took me to get this, but I love it.
This is a great one. I'm definitely using it in class this fall to explain static variables.
Fun fact: I made this meme to explain my classmates static variables.
Post funny things about programming here! (Or just rant about your favourite programming language.)