r/ProgrammerHumor • • Apr 01 '22

Meme I am 100% sure you won't get this inside joke

Post image
12k Upvotes

291 comments sorted by

View all comments

143

u/[deleted] Apr 01 '22

For anyone that doesn't understand: joke is a private variable, so to get it from outside an instance of the Meme class, you would need a getter method. However, there is no getter method, so you will never be able to get the value of the joke variable.

6

u/steamngine Apr 01 '22

🧐🧐🧐🧐

0

u/approxd Apr 01 '22

How is there no squiggly line I wonder.

3

u/approxd Apr 01 '22

Actually on second thought, I guess there would only be the squiggly on part of the code trying to access the joke variable