This is not too far away from reality
When the teacher began talking about object-oriented programming, he decided to pay attention. She began describing objects and their properties and methods, instancing, and protection. Amro found that he’d had the wrong idea of the difference between public and private for months.
„When you declare your functions and variables public, anyone can open your program in an IDE and see the source code. But if you use private variables and functions they won’t be able to see anything because it will be protected.”
Amro did something that could only be described as a wide-eyed gaspcoughchoke and left the class, never to return again.
Via Worse Than Failure.