Classes, Constructors, Objects, and Method Design – AP CS A, Unit 5 – Study Notes
offline
‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌

Source: Princeton Review AP CS A Prep, 8th Edition

Tags: Java classes, constructors, overloading, instance variables, static, private, public, toString, accessor, mutator, encapsulation, object reference, AP Computer Science A, Unit 5

Difficulty: Intermediate Prerequisites: Java Fundamentals (types, expressions, Strings, conditionals).

Big Picture

Unit 5 is where Java stops being a calculator and starts being an object-oriented language. You learn to define your own data types with classes, control access to internal state with private fields, and provide constructors to initialise objects. The AP exam tests your ability to read class definitions, determine which constructors are valid for given arguments, trace through method calls, and under…