Home Segments Top Top Previous Next

180: Mainline

The arithmetic types are like atoms in ordinary chemistry: You cannot take apart particular integral and floating-point values. Accordingly, those data types are said to be among primitive types. The primitive types also include the boolean type, which you learn about in Chapter 21.

In contrast to primitive types, class instances, which you learned about in this chapter, are like molecules in ordinary chemistry: you can take apart particular instances. Such data types are called reference types.