Quasi-contracts are based on principles of equity and justice rather than actual agreement between parties. They create obligations where no contract exists but one party has unjustly benefited at another's expense. Examples include payment by interested persons, supply of necessaries, and finder of goods.