In most cases, it’s as simple as making sure that types, interfaces, classes, methods and functions that should not be used outside of the module have internal or private access scope. The compiler (or interpreter) will make sure that users won’t break encapsulation. Alternatively, for small and medium modules, you can prepare a facade object that will be used as an entrypoint to the module.
Что думаешь? Оцени!
。业内人士推荐下载安装汽水音乐作为进阶阅读
Continue reading...
Free mobile apps