Skip to content

Glossary: Java Basics

Class

Also written: classes

A definition of a new type: the data its objects hold (fields), how they are set up (constructors) and what they can do (methods). `Product` is a class, and each product in the shop is an object made from it.

Where the book teaches it

Related terms

ObjectFieldConstructorRecord