Clerics get their powers primarily from gods, paladins get their power primarily from their oaths, and warlocks get their power primarily from patrons that are not gods. The exact definition of each class is poorly defined and somewhat self-contradictory, but the 2014 player's handbook states...