20-1-2. Origin of obligations.
An obligation arises either from:
(1)The contract of the parties; or
(2)The operation of law.
Source: CivC 1877, §799; CL 1887, §3422; RCivC 1903, §1115; RC 1919, §722; SDC 1939, §47.0102.