Which attribute is shared by both squares and trapezoids?

A) 4 sides
B) 4 right angles
C) All sides of equal length
D) 2 sets of parallel sides