Please enable JavaScript to use CodeHS

CodeHS Glossary


Constructor Java

A constructor is a special method of a Class that constructs a new object (a new instance) of the Class and sets the initial values for the instance variables.