"Which of the following is an example of discharge by operation of law?"
A. Xavier agrees to paint Rita's house for $1,000. Before Xavier can paint, Rita's house burns down.
B. Xavier agrees to paint Rita's house for $1,000. Xavier paints, but before Rita pays him she files bankruptcy. As a result, Xavier doesn't get paid.
C. Xavier agrees to paint Rita's house for $1,000. Rita later tells Xavier that she won't pay him. As a result, Xavier decides not to paint.
D. Xavier agrees to paint Rita's house for $1,000. Rita changes her mind and asks Xavier not to paint. Xavier agrees.