= Member variable
{wiki=Member_variable}
A **member variable** (also known as an instance variable or field) is a variable that is defined within a class and is associated with instances of that class (i.e., objects created from the class). Member variables store the state or attributes of objects. \#\#\# Key Characteristics of Member Variables: 1. **Scope**: Member variables are usually scoped to the class they are defined in. Each instance of the class has its own copy of the member variables.
Back to article page