Mar 10, 2021
You're right, it's not full encapsulation like you're used to with Java. But the idea is there still. If you mark something as private, then other parts of your codebase are not allowed to access those.
Of course, without using '#' in a class, it's not the case at runtime, but for anything but libraries, this doesn't matter too much.