The encapsulation happens at library level, not at class level . There is a simple rule: any identifier (class, class member, top-level function, or variable) that starts with an underscore _ it is private to its library.
The encapsulation happens at library level, not at class level . There is a simple rule: any identifier (class, class member, top-level function, or variable) that starts with an underscore _ it is private to its library.