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.

Learn it properly, with a checkpoint 1.13 Object Creation and Storage (Instantiation)

Related terms

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

↑ Top

Enlarged view of the selected figure