Object Creation and Storage (Instantiation)
AP Computer Science A · Flashcards · Recall
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 28
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What is stored in a variable that holds an object reference?
QUESTION
How do you invoke a method on an object?
QUESTION
What is the syntax to create a new object of class Car?
Tap to flip before you grade
ANSWER
Car myCar = new Car();. Standard object creation: declare variable, use new, call constructor.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card