AP Computer Science A Flashcards: Objects: Instances of Classes
Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026
Review key ideas with interactive flashcards. This set includes 10 cards to help you master important concepts.
What does a variable of a reference type hold?
A variable of a reference type holds an object reference, which can be thought of as the memory address of that object.
Card 1 of 10
All Flashcards (10)
What does a variable of a reference type hold?
A variable of a reference type holds an object reference, which can be thought of as the memory address of that object.
If `Student` is a class, what does the code `Student student1;` accomplish?
This code declares a variable named `student1` which is a reference type that can store the memory address of a `Student` object.
Explain the relationship between a class and an object.
A class is the blueprint that defines the attributes and behaviors of an object, while an object is a specific instance created from that class blueprint.
What is an 'instance' in the context of object-oriented programming?
An instance is a specific realization of a class. When an object is created from a class, it is called an instance of that class.
What is an object reference?
An object reference is what a reference type variable holds; it can be thought of as the memory address where a specific object is stored.
What are subclasses?
Subclasses are classes that extend a superclass, inheriting its common attributes and behaviors.
What is an object?
An object is a specific instance of a class with defined attributes.
What is a superclass?
A superclass is a single class in a hierarchy that contains the common attributes and behaviors of its related subclasses.
What is a class?
A class is the formal implementation, or blueprint, of the attributes and behaviors of an object.
How is a class hierarchy developed?
A class hierarchy is developed by putting common attributes and behaviors of related classes into a single superclass, which is then extended by subclasses.