Top
Previous Next
The Java Language CS 161 - Java

Constructors

Constructors are the mechanism by which new instances of a class are created from the blueprint of the class definition.

The purpose of a constructor is to initialize a new object.

Question: Why would you want to define a constructor?


Top
Previous Next
jwd