constructor
A special kind of method that works with
new. Constructors are created along with each record or class definition.First used in Programs and Values › Hello, Pict!.
constructor use
An expression of the form
new Name(arguments...). Name must be the name of a class or record. The arguments are given to the constructor, usually to initialize field values.First used in Programs and Values › Hello, Pict!; also in Data That Travels Together › Values that belong to each other.
definition
A statement of the form Type name = value;
Can appear at the toplevel, in a method body, or as a class member.
First used in Programs and Values › Hello, Pict!.
object
A value created via constructor use. Has fields and stores the name of the constructor used to create it (known as the object’s
class).First used in Programs and Values › Hello, Pict!; also in Data That Travels Together › Values that belong to each other, How Java Runs › When Some Values are More Equal than Others.
Pict
A datatype specific to the library that comes with this book for representing images.
First used in Programs and Values › Hello, Pict!.
type
A name for a set of values. Can be an object type, typically written in uppercase as the name of a class, record, or interface, an array type which has an object or array type followed by brackets
[], or a primitive type like int, double, or booleanFirst used in Programs and Values › Hello, Pict!.