DEFINITION 11: MEMBER VARIABLE - PRATMG/2143-OOP-Tamang GitHub Wiki

A member variable (also known as a member field) is a variable that is associated with a specific object and is accessible to all of its methods in object-oriented programming (member functions).

class Foo {
    int bar; // Member variable
  public:
    void setBar(const int newBar) { 
      bar = newBar;
    }
};

int main () {
  Foo rect; // Local variable

  return 0;
}

Reference: