Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In Java, a class member that isn’t declared as public, private, or protected is visible in the package containing the class. In Scala, you can achieve the same effect with qualifiers. The following method is visible in its own package:
package com.horstmann.impatient.people
class Person {
private[people] def description = "A person with name " + name
...
}