Glossary: Data Structures and Algorithms in Java
constructor
A special method in a class that runs when you create an object with `new`, setting up its fields.
Glossary: Data Structures and Algorithms in Java
A special method in a class that runs when you create an object with `new`, setting up its fields.