We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cee72ab + 377689c commit 1d75d07Copy full SHA for 1d75d07
src/main/scala/stdlib/Objects.scala
@@ -69,7 +69,7 @@ object Objects extends FlatSpec with Matchers with org.scalaexercises.definition
69
Movie.academyAwardBestMoviesForYear(1932).get.name should be(res0)
70
}
71
72
- /** A companion object can also see private values and variables of the instantiated objects:
+ /** A companion object can also see private values and variables of the corresponding classes' instantiated objects:
73
*/
74
def privateValuesObjects(res0: String, res1: String, res2: String, res3: String) {
75
class Person(val name: String, private val superheroName: String) //The superhero name is private!
0 commit comments