Scala LanguageScope


Introduction

Scope on Scala defines where a value (def, val, var or class) can be accessed from.

Syntax

  • declaration
  • private declaration
  • private[this] declaration
  • private[fromWhere] declaration
  • protected declaration
  • protected[fromWhere] declaration