01Chapter 1: Encapsulation: State, Behavior, and InvariantsA class is a blueprint for creating objects. An object holds data and can perform actions. Its state is its current data, stored in variables called fields. Its behavior comes from methods, which are actions the class defines.1 min read
02Chapter 2: Access Modifiers for Classes and MembersAn access modifier controls where Java code can use a class, field, method, or constructor. A field stores data, a method performs an action, and a constructor sets up a new object.1 min read
03Chapter 3: Protected Access Across Package BoundariesA package is a group of Java classes. A protected member can be used by classes in its own package. It can also be used by a subclass, a class that extends another class, in a different package.1 min read