Logo
On the internet, nobody knows you're a dog.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Data-hiding Memes

Posts tagged with Data-hiding

When You Are A Public Function But Only Friends Are Allowed To Touch Privates

C++ Java Programming Csharp
1 month ago 18.6M views 0 shares
When You Are A Public Function But Only Friends Are Allowed To Touch Privates
Object-oriented programming's access modifiers explained through the most awkward love triangle in computer science. You're out here being a public function, visible to the entire codebase, while watching your friend classes get all cozy with those private members you can only dream about accessing. It's like being the third wheel at a party where everyone's talking about encapsulation. Sure, you're public and everyone can call you, but that doesn't mean you get special privileges. Meanwhile, friend functions are living their best life, breaking all the rules of data hiding because they got that special declaration. The real kicker? Friend functions in C++ can access private and protected members even though they're not part of the class. They're basically the VIP pass holders of the programming world while you're stuck outside the velvet rope with the rest of the public interface.

Today's picks

Pixiecube Excel Cheat Sheet Desk Pad | Excel Shortcut Keys Mouse Pad | Extended Large XL Gaming Mousepad | PC Office Spreadsheet Keyboard Mat | Non-Slip Stitched Edge

Pixiecube Excel Cheat Sheet Desk Pad | Excel Shortcut Keys Mouse Pad | Extended Large XL Gaming Mousepad | PC Office Spreadsheet Keyboard Mat | Non-Slip Stitched Edge

Affiliate
$21.95
Lets scaffold another

Lets scaffold another

Programming
91.0K views 1 year ago
The Savior Of PHP Installation Nightmares

The Savior Of PHP Installation Nightmares

php
407.6K views 1 year ago