Back to marketplace

Classes

No description yet. This curated deck is ready for daily study.

Total cards: 10•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (10)

#1
Front (Question)

An object that belongs to a particular class is called an _________ of that class. The process of creating an object is called ________

Back (Answer)

instance, instantiation

#2
Front (Question)

“Garbage collection” definition

Back (Answer)

objects that are no longer accessible in the program (no longer referred to by any variable) are automatically destroyed and the memory they occupy is recycled.

#3
Front (Question)

Public fields + methods:

Back (Answer)

accessible ANYWHERE in all your code

#4
Front (Question)

Private field + methods:

Back (Answer)

accessible ONLY within constructors and methods of the same class

#5
Front (Question)

A requirement on the AP exam is to make ALL instance variables ______

Back (Answer)

private

#6
Front (Question)

Encapsulation definition:

Back (Answer)

The concept of private fields and methods hiding the implementation details of a class from other classes, its clients.

#7
Front (Question)

A _____ class uses your class through constructors and public methods.

Back (Answer)

client

#8
Front (Question)

“Information Hiding” definition:

Back (Answer)

the practice of supplying as little information to client classes as possible. For example, if a method is used only internally within that class, it should be made PRIVATE

#9
Front (Question)

Since all instance variables are private, they are not directly accessible in client classes. It is common to provide special public methods, called ________, that return the values of instance variables.

Back (Answer)

accessors

#10
Front (Question)

Modifier definition

Back (Answer)

A public method that sets a new value of an instance variable is called a modifier