In Scala I see such feature as object-private variable. From my not very rich Java background I learnt to close everything (make it private) and open (provide accessors) if
private var name is accessible from any method of the class Dummy (and its companion object Dummy).
private var name
class Dummy
object Dummy
private[this] var name is accessible from methods of this object only, not from other objects of class Dummy.
private[this] var name
this