This chapter discusses the encapsulation and packaging features of Scala. The concept of packages is discussed, along with some concrete examples. It then illustrates how the encapsulation facilities can allow quite fine-grained control over the visibility of the elements of your programs.
CITATION STYLE
Hunt, J. (2018). Packages and Encapsulation. In A Beginner’s Guide to Scala, Object Orientation and Functional Programming (pp. 103–119). Springer International Publishing. https://doi.org/10.1007/978-3-319-75771-1_11
Mendeley helps you to discover research relevant for your work.