Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#odersky-programming-in-scala-2ed #scala
Question
What does access modifier private[this] mean? Is it more or less restrictive than private ?
Answer
It is more restrictive, because it allows access only from the same object. Same class, different object is not allowed (think: typical implementation of equals() in Java has this.x == that.x; it wouldn't work with private[this] in Scala)

Tags
#odersky-programming-in-scala-2ed #scala
Question
What does access modifier private[this] mean? Is it more or less restrictive than private ?
Answer
?

Tags
#odersky-programming-in-scala-2ed #scala
Question
What does access modifier private[this] mean? Is it more or less restrictive than private ?
Answer
It is more restrictive, because it allows access only from the same object. Same class, different object is not allowed (think: typical implementation of equals() in Java has this.x == that.x; it wouldn't work with private[this] in Scala)
If you want to change selection, open document below and click on "Move attachment"

pdf

cannot see any pdfs

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.