It’s a 25-year-old principle of object-oriented (OO) design that you shouldn’t expose an object’s implementation to any other classes in the program. The program is unnecessarily difficult to maintain ...
For those that are unfamiliar with the concept of classes and who want to learn more about how they work, keep reading. If you just want the syntax for classes in Python, you can skip to the next ...