You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/tour/unified-types.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,15 @@ next-page: classes
10
10
previous-page: tour-of-scala
11
11
---
12
12
13
-
In Scala, all values are instance of a class, including numerical values and functions. The diagram below illustrates the class hierarchy.
13
+
In Scala, all values are instances of a class, including numerical values and functions. The diagram below illustrates the class hierarchy.
14
14
15
15

16
16
17
17
## Scala Class Hierarchy ##
18
18
19
19
The superclass of all classes `scala.Any` has two direct subclasses: `scala.AnyVal` and `scala.AnyRef`.
20
20
21
-
`scala.AnyVal` represents value classes. All value classes are not nullable and predefined; they correspond to the primitive types of Java-like languages. Note that the diagram above also shows implicit conversions between the value classes.
21
+
`scala.AnyVal` represents value classes. All value classes are non-nullable and predefined; they correspond to the primitive types of Java-like languages. Note that the diagram above also shows implicit conversions between the value classes.
22
22
23
23
`scala.AnyRef` represents reference classes. All non-value classes are defined as reference class. Every user-defined class in Scala implicitly extends `scala.AnyRef`. If Scala is used in the context of a Java runtime environment, `scala.AnyRef` corresponds to `java.lang.Object`.
24
24
@@ -44,7 +44,7 @@ The application defines a variable `list` of type `List[Any]`. The list is initi
0 commit comments