Source: wikibot/instance-variable

= Instance variable
{wiki=Instance_variable}

An instance variable is a variable that is defined within a class and is tied to a specific instance of that class. Each object (or instance) created from the class has its own copy of the instance variable, which means that the value of the instance variable can vary from one object to another. Instance variables are typically used to store the state or attributes of an object.