Chapter 7. Packages, Imports, and Exports
Topics in This Chapter A1
A package contains features with a common purpose. Large programs and libraries are typically organized into a multitude of packages.
Package names are unique but long. Using import statements, you can access the features of a package with a shorter name.
This chapter ends with a discussion of the export
syntax, which is syntactically similar to import statements, but is used for delegation.
The key points ...
Get Scala for the Impatient, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.