The difference between an instance variable and a static variable.
The difference between an instance variable and a static variable.
cross-posted from: https://programming.dev/post/146762
1 crossposts
You're viewing a single thread.
All Comments
12 comments
Young man, could.you explain your shitpost?
3 0 Replyint variable => local scope => my int from the perspective of an instance
static int variable => class scope => our int, for all instances of a class
10 0 ReplyYou know what's funny? In PHP it's backwards :D
1 0 Replywell of course it is!
1 0 Reply
I said, young man, what the fuck was that post?
1 0 Reply
12 comments
Scroll to top