Private String Gender

Private String Gender
java-memes, object-oriented-memes, programming-humor-memes, encapsulation-memes, access-modifiers-memes | ProgrammerHumor.io

When your object-oriented programming skills finally come in handy at a protest. Someone clearly paid attention in CS class instead of sleeping through encapsulation lectures. The sign brilliantly uses Java's access modifiers to make a statement - keeping gender as a private string variable that can't be modified by outside classes, rather than a public constant boolean that everyone gets to weigh in on. The compiler of this joke deserves a promotion.

More Like This