Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
A student class is a blueprint or template that defines the properties and behaviors of a student object. It specifies what data (such as name, grade level) and methods (such as calculateGPA()) a student object can have.
The name is a data property of the student class that represents the personal identification of the student.
calculateGPA(): The calculateGPA() method is one behavior defined in the student class that calculates and returns the Grade Point Average (GPA) of the student based on their grades.