Scala Variable
Jump to navigation
Jump to search
A Scala Variable is a software variable in Scala code.
- Context:
- It can range from being a Scala val Variable to being a Scala var Variable.
- Example(s):
- Counter-Example(s):
- a Java Variable, Python Variable, Perl Variable, ...
- a Scala Class.
- See: Array, Scala Map.
References
2010
- (Odersky et al., 2010) ⇒ Martin Odersky, Lex Spoon, and Bill Venners. (2010). “Programming in Scala, 2nd edition." Artima. ISBN:0981531644
- QUOTE: Scala variable: A named entity that refers to an object. A variable is either a val or a var. Both vals and vars must be initialized when defined, but only vars can be later reassigned to refer to a different object.