1 2 3 4 5 6 7 8 9 10
package file class File private (val str: String) { def name: String = "name" } object File { def apply(str: String): File = new File(str) }