- Learning Scala Programming
- Vikash Sharma
- 35字
- 2025-04-04 17:32:11
AnyVal and AnyRef
Both AnyVal and AnyRef are two subclasses of root class Any. These two represent two families of types in Scala: the first ones are object references, the latter are value classes.