Which set of event is dependent?

A. Choosing marble from a box, replacing it, then choosing another marble
B. Choosing a ball from a bag and then choosing another ball without replacing the first
C. Rolling a number cube and flipping a coin
D. The event of getting two heads when flipping two fair coins

D. The event of getting two heads when flipping two fair coins