Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
Properties are characteristics or attributes of an object that define its state. They store data and can be accessed and modified by the object's methods.
Encapsulation is the concept of bundling data (properties) and methods together within an object to hide implementation details.
Getters and Setters: Getters are methods used to retrieve the value of a property, while setters are methods used to modify or update the value of a property.