Lecture overview -- Keyboard shortcut: 'u'  Previous page: Value Types [Section] -- Keyboard shortcut: 'p'  Next page: Illustration of variables of value types -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Reference types, Value types, and Patterns - slide 8 : 29

Value types

A variable of value type contains its value

The values are allocated on the method stack or within objects on the heap

Variables of value types are dealt with by use of so-called value semantics

Use of value types simplifies the management of short-lived data