On our tour we’ve seen some example syntax, walked through the class hierarchy, and briefly looked at ScalaDoc, but Scala offers heaps of other interesting language features.
In this chapter, we won’t really talk about syntax but we’ll discuss some of the things that make Scala an interesting and powerful language when working with source code, working with methods, and using its functional programming features.
Working with Source Code
Source Files. What you put in source files is much more flexible in Scala than in Java. While in Java a file must be named the same as the public class it contains, there’s ...