Object Creation and Storage (Instantiation) - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What is the syntax to create a new object of class Car?

Tap to reveal answer

Answer

Car myCar = new Car();. Standard object creation: declare variable, use new, call constructor.

← Didn't Know|Knew It →