AP® Computer Science A glossary
new
Also called: new keyword
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
The keyword that creates an object. It is followed by a call to one of the class's constructors.
Appears in the course and exam description (CED): 1.13.C.1
Without new, Plant("Fern", 30) is not a valid way to create an object. new returns a reference to the new object.