๐Ÿ’ปap computer science a review

Instance Variable

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

An instance variable is a variable that belongs to an object and holds unique data for each instance of the class. It is declared within a class but outside any method.

"Instance Variable" also found in: