All Subjects
Light
AP Computer Science A
The keyword "new" is used to create an instance of a class or to allocate memory for an object.
Object: An instance of a class that can hold data and have behavior.
Constructor: A special method that is called when an object is created using the "new" keyword.
Instantiate: Creating an object from a class, typically done with the "new" keyword.