Exam prep

AP CSA Unit 3: a class is a contract, and the FRQ grades every clause

Unit 3 moves you from using classes to writing them, and the exam's class design question grades anatomy. It looks for private fields, a constructor that sets them, and methods whose signatures match the spec. Encapsulation is the reasoning behind every line, state guarded behind a public interface.

DownloadApp StoreSoonGoogle Play
Free to startNo adsTR & EN

The tool below drills the parts and their reasons from your own notes.

WeSolve+ reads the whole document and writes the questions for you

Upload your PDF, photograph your notebook, or point the camera. WeSolve+ writes questions from that material, explains why each answer is right, reads the chapter back to you as a podcast, and remembers every item you missed until you own it.

Start free!

The tool below is a small browser-only tool and it is not WeSolve+: paste a few lines and text rules turn them into cards on the spot. The real app, the one that uses AI, is behind the link above.

Unit 3 class anatomy, from your own notes

This is a browser-only tool, and that is all it isIt splits the text you paste by rule, and nothing else. WeSolve+ is a different thing entirely: it reads your whole PDF with AI, writes the reasoning behind every question, speaks the chapter back to you, and remembers what you missed so it can return it. Try the real app now, free!

What you paste is what gets carded. Fixed rules split the text and nothing outside it is known, which makes the paste itself the real decision.

The class design FRQ is a checklist, so write to it

Graders look for the class header, private fields, a constructor matching the described parameters, and methods with the exact signatures the prompt names. Each is its own point. Writing the skeleton first, header, fields, constructor, method stubs, banks most of the score before any logic, which is the correct order under time.

Encapsulation is the reason, and reasons are examinable

Fields are declared private so the class controls how its state changes, and encapsulation is what that policy is called. Multiple choice asks which declaration respects it and why a mutator beats a public field: the mutator can refuse bad values, a public field cannot refuse anything.

Constructors initialise, and the details are the distractors

A constructor shares the class's name, returns nothing, and should leave every field set. Overloads differ by parameter list. When a parameter shadows a field, the keyword this disambiguates, and the assignment written without it is the exam's favourite silent bug: the parameter assigned to itself.

Accessors and mutators are the public face, so match the spec

An accessor returns state without changing it; a mutator changes state and usually returns nothing. The FRQ names them, and a signature that drifts from the spec, wrong return type, missing parameter, forfeits the point even when the body is right. Reading the prompt's method table twice is cheaper than losing it once.

Static and scope questions test where things live

A static variable belongs to the class and is shared by all instances, which makes it the right home for a running count and the wrong home for a name. A local variable dies with its method call; a field persists with the object. Tracing questions probe those lifetimes, and the answer is always an address: class, object or method.

What to photograph for Class Creation

Your class skeletons and annotated code. Related: Unit 2, photo to quiz and pricing.

Sources used on this page

The anatomy the FRQ grades
PartIts jobWhere the point dies
Class headerNames the contractMisspelt or missing public
Private fieldsGuarded stateDeclared public
ConstructorSets every fieldShadowing without this
AccessorReturns state unchangedWrong return type
MutatorChanges state by the rulesSignature drifts from spec
Static memberShared by the classUsed for per object data

What does AP CSA Unit 3 cover?

Writing classes in Java: fields, constructors, accessors, mutators, encapsulation, the keyword this, static members and scope.

Why are fields declared private?

So the class controls changes to its own state. Outside code must use the public methods, which can enforce rules a public field cannot.

What does the keyword this do?

It names the current object, which resolves the shadowing when a constructor parameter shares a field's name.

What is the difference between static and instance variables?

Static belongs to the class and is shared by every object; an instance field belongs to each object separately.

How should I attack the class design FRQ?

Skeleton first: header, private fields, constructor, method stubs with exact signatures. Most points sit in the anatomy, then fill the logic.

Can I build questions from my own Unit 3 notes?

Yes. A photographed page or an uploaded PDF keeps the questions bounded: they come from what you gave, not from the rest of the course.

Last updated: 2026-08-15