In object-oriented programming, static variables are declared to be the same for every object of a class. If a static variable is modified in one object, the modification is reflected in all other objects of the class that reference the same variable.