What are invariants? June 1, 2014 Another easy concept, that for some reason, took me a while to understand – invariants. An (object oriented) software contains objects (of a certain domain), and each object has a state.