AP CSA Unit 3 (Class Creation): Designing Robust Java Classes

0.0(0)
Studied by 0 people
0%Unit 3 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceAP Practice
Supplemental Materials
call kaiCall Kai
Card Sorting

1/24

Last updated 3:08 PM on 3/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Abstraction

Focusing on what an object/class does and how to use it, while hiding the internal details of how it works.

2
New cards

Interface (public-facing API sense)

The set of public methods a class exposes that tells other code what operations can be performed (not necessarily the Java interface keyword).

3
New cards

Implementation

The private fields and internal logic that make a class work; hidden behind the class’s public methods.

4
New cards

Encapsulation

Bundling data with the methods that operate on it inside a class, while restricting direct access to the data (often using private fields).

5
New cards

Cognitive load (in program design)

The amount of detail a programmer must keep in mind; abstraction reduces it by letting you think in terms of method calls instead of internal steps.

6
New cards

Localization of change

A design benefit where changes to how something works are mostly confined to one class/module, without rewriting code that uses it.

7
New cards

Class invariant

A rule about an object’s state that should always be true (e.g., balance is never negative), enforced by constructors and methods.

8
New cards

High cohesion

A design goal where a class has a single, clear responsibility and its methods/fields strongly relate to that one purpose.

9
New cards

Responsibility (of a class)

The specific job or role a class is meant to handle (what it should do and what it should not do).

10
New cards

Representation (internal state choice)

How a class stores its data internally (e.g., storing total+count vs storing an average); should be hidden from users of the class.

11
New cards

Leaking representation

When outside code depends on a class’s internal storage details, making future implementation changes likely to break other code.

12
New cards

API (Application Programming Interface)

The “remote control” of a class: the methods and behavior other code is intended to call and rely on.

13
New cards

Field (instance variable)

A variable stored in an object that remembers state between method calls; each object has its own copy of instance fields.

14
New cards

Constructor

A special class member (same name as the class, no return type) that initializes a new object into a valid starting state.

15
New cards

Default no-argument constructor

A constructor Java provides automatically only if you define no constructors at all; it takes no parameters.

16
New cards

Overloaded constructor

One of multiple constructors in the same class with different parameter lists, allowing different ways to initialize objects.

17
New cards

Constructor chaining (this(…))

Calling one constructor from another using this(…), which must be the first line of the constructor, to avoid duplicated initialization logic.

18
New cards

Accessor method (getter)

A method that returns information about an object without changing its state (e.g., getScore()).

19
New cards

Mutator method (setter/modifier)

A method that changes an object’s state; a key place to enforce class invariants (e.g., prevent negative values).

20
New cards

this reference

A reference to the current object inside an instance method/constructor; often used to distinguish fields from parameters.

21
New cards

Shadowing

When a parameter/local variable has the same name as a field; without using this.fieldName, assignments may not affect the field.

22
New cards

Method signature

A method’s name plus its parameter types (and order); used by Java to distinguish overloaded methods.

23
New cards

Overloading (methods)

Defining multiple methods with the same name but different parameter lists; changing only return type does not overload.

24
New cards

Static member

A field or method that belongs to the class itself (shared across all objects); static methods do not have access to this.

25
New cards

Modularity

Building a program from well-defined parts (often classes) with clear boundaries, limited dependencies, and changeable internals.

Explore top notes

note
🦅 APUSH Unit 5 Notes
Updated 190d ago
0.0(0)
note
Memrise beginner/TTMIK level one
Updated 1297d ago
0.0(0)
note
Metals 12.1 to 12.4
Updated 1326d ago
0.0(0)
note
Apwh guide
Updated 706d ago
0.0(0)
note
Chapters 5.1 and 5.2 Populations >
Updated 1061d ago
0.0(0)
note
Chapter 16: The Judiciary
Updated 1041d ago
0.0(0)
note
Physical Science - Chapter 19
Updated 1038d ago
0.0(0)
note
🦅 APUSH Unit 5 Notes
Updated 190d ago
0.0(0)
note
Memrise beginner/TTMIK level one
Updated 1297d ago
0.0(0)
note
Metals 12.1 to 12.4
Updated 1326d ago
0.0(0)
note
Apwh guide
Updated 706d ago
0.0(0)
note
Chapters 5.1 and 5.2 Populations >
Updated 1061d ago
0.0(0)
note
Chapter 16: The Judiciary
Updated 1041d ago
0.0(0)
note
Physical Science - Chapter 19
Updated 1038d ago
0.0(0)

Explore top flashcards

flashcards
Prof Comm 25/26
66
Updated 248d ago
0.0(0)
flashcards
tema 4 vocabulario
51
Updated 81d ago
0.0(0)
flashcards
520 intro & cns cells
59
Updated 932d ago
0.0(0)
flashcards
Bio Chapter 12
22
Updated 1055d ago
0.0(0)
flashcards
Religion chapter 11 test
47
Updated 1173d ago
0.0(0)
flashcards
Prof Comm 25/26
66
Updated 248d ago
0.0(0)
flashcards
tema 4 vocabulario
51
Updated 81d ago
0.0(0)
flashcards
520 intro & cns cells
59
Updated 932d ago
0.0(0)
flashcards
Bio Chapter 12
22
Updated 1055d ago
0.0(0)
flashcards
Religion chapter 11 test
47
Updated 1173d ago
0.0(0)