memesearch

When Encapsulation Gets Convenient

Download Find similar pictures
Text on the meme
#include <iostream> using namespace std; class User { private: string login; string password; }; int main() { User a; public: string string GetLogin() { return login return this->login; a.GetLogin(); }
What it means

A Visual Studio C++ editor shows a programmer gradually modifying a User class with private login and password fields, then adding a public getter and calling it. The joke is that the programmer casually breaks the class structure and produces buggy code while trying to access a private field, making fun of beginner programming mistakes and rushed encapsulation. It works as a reaction to messy code, failed debugging, or someone improvising a technical solution.

Objects
Tags
Source
Type
video, 0:44
Size
464×848 · 4.4 MiB
Mood
sarcastic, absurd
Language
en
Added