DonjonMaister@programming.dev to Programmer Humor@lemmy.ml · 1 year agoThe difference between an instance variable and a static variable.programming.devimagemessage-square7fedilinkarrow-up131arrow-down10file-textcross-posted to: programmer_humor@programming.dev
arrow-up131arrow-down1imageThe difference between an instance variable and a static variable.programming.devDonjonMaister@programming.dev to Programmer Humor@lemmy.ml · 1 year agomessage-square7fedilinkfile-textcross-posted to: programmer_humor@programming.dev
minus-squarefiah@discuss.tchncs.delinkfedilinkarrow-up1·1 year agoint variable => local scope => my int from the perspective of an instance static int variable => class scope => our int, for all instances of a class
minus-squareLux@lemmy.blahaj.zonelinkfedilinkarrow-up1·1 year agoI said, young man, what the fuck was that post?
Young man, could.you explain your shitpost?
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
I said, young man, what the fuck was that post?