Variables are inherited by knowing their positions. A variable is put at the same position in a structure in a class and all of its superclasses. This only works in a single-inheritance language.