Skip to content

Glossary: Java Basics

Constructor

Also written: constructors

A special method that sets up a new object. It has the class's name and no return type, and it runs when you write `new Product(...)`.

Where the book teaches it

Related terms

ClassObjectthisnew