Unit 03

Class Creation

Build MonsterBattle — a turn-based fight you can play — on a Monster class we build together, fought in a text-only battle first and then given specials of your own, deciding what an object knows, what it can do, and what it refuses to let anyone touch.

10–18% of the AP Exam~20–22 CED periods~10–12 blocks here9 topics

Computer Science in Java · members' unit

Class Creation is behind a locked door

Units in Computer Science in Java 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 · 34 min read

  1. The projects · Monster, then MonsterBattle
  2. 3.1 · Designing with Abstraction
  3. 3.2 · The Consequences of Programs
  4. 3.3 · The Parts of a Class
  5. 3.4 · Constructors
  6. 3.5 · Writing Methods
  7. 3.6 · Passing and Returning Object References
  8. 3.7 · Class variables and methods
  9. 3.8 · Scope and access
  10. 3.9 · this Keyword
  11. Finishing the projects
  12. Where this goes next

35 quick checksannotated specimenstepperobject reference diagramstext battle sandboxobject instantiation yard+2 more

1 Sign in

With your school Google account. This is how your work reaches the gradebook — it doesn't open the unit by itself.

2 Get in

Open the class link your teacher posted — that's the usual way, and it enrolls you on the spot. Or paste an access key if you were handed one.

Or buy it

Reading on your own, with no class? The course can be yours.

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 Computer Science in Java.

Sources

  • College Board — AP Computer Science A Course and Exam Description, Effective Fall 2025