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
A class is a blueprint or template for creating objects in object-oriented programming. It defines the properties and behaviors that an object of that class will have.
Inheritance is the process by which one class inherits the properties and behaviors of another class. It allows for code reuse and promotes modularity.
Encapsulation is the practice of hiding internal details of an object and providing access only through well-defined interfaces. It helps maintain code integrity and prevents unauthorized access.