Which type of connection shows how the ideas are similar or different

A. Chronological order
B. Cause and effect
C. Problem and solution
D. Comparison and contrast

D. Comparison and contrast