Abstract
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.
This is a preview of subscription content,log in via an institution to check access.
Access this chapter
Subscribe and save
- Get 10 units per month
- Download Article/Chapter or eBook
- 1 Unit = 1 Article or 1 Chapter
- Cancel anytime
Buy Now
- Chapter
- JPY 3498
- Price includes VAT (Japan)
- eBook
- JPY 6863
- Price includes VAT (Japan)
- Softcover Book
- JPY 8579
- Price includes VAT (Japan)
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Midmarsh Technology Ltd, Bath, Wiltshire, UK
John Hunt
- John Hunt
Search author on:PubMed Google Scholar
Corresponding author
Correspondence toJohn Hunt.
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this chapter
Cite this chapter
Hunt, J. (2018). Packages and Encapsulation. In: A Beginner's Guide to Scala, Object Orientation and Functional Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-75771-1_11
Download citation
Published:
Publisher Name:Springer, Cham
Print ISBN:978-3-319-75770-4
Online ISBN:978-3-319-75771-1
eBook Packages:Computer ScienceComputer Science (R0)
Share this chapter
Anyone you share the following link with will be able to read this content:
Sorry, a shareable link is not currently available for this article.
Provided by the Springer Nature SharedIt content-sharing initiative