Unit 03
Class Creation
Build MonsterBattle — a turn-based fight you can play — starting with the Monster class underneath it, written by you from nothing, deciding what an object knows, what it can do, and what it refuses to let anyone touch.
Every assignment filed under this unit, and where each one stands with your classes. The whole console →
- What the constructor is forchecking
- name = namechecking
- Knows and doeschecking
- Whose code, and does it hold up?checking
- What the method actually gotchecking
- One copy, or one eachchecking
- One class, four questionschecking
AP Computer Science A · members' unit
Class Creation is behind a locked door
Units in AP Computer Science A are for people taking the course. Getting in takes a link or a key — signing in on its own doesn't do it.
What's in this unit · 27 min read
- The projects · Monster, then MonsterBattle
- 3.1 · Abstraction and program design
- 3.2 · Impact of program design
- 3.3 · Anatomy of a class
- 3.4 · Constructors
- 3.5 · Methods, and how to write them
- 3.6 · Passing and returning references
- 3.7 · Class variables and methods
- 3.8 · Scope and access
- 3.9 · The this keyword
- Finishing the projects
- Where this goes next
26 quick checksstepperobject reference diagramsobject instantiation yardcode exercisesdebugging drills
1 Sign in
With your school Google account. This is how your work reaches the gradebook — it doesn't open the unit by itself.
A key unlocks this browser and keeps your progress here; signing in keeps it with you across devices. Either way the key itself is only ever checked as a hash. Manage all of this on your account, read what signing in stores, or go back to AP Computer Science A.
Sources
- College Board — AP Computer Science A Course and Exam Description, Effective Fall 2025
- Gilmour Academy — Course structure and standards adaptation