Given that a shape is a parallelogram, which of the following is sufficient to state that it is also a rectangle?

AThe opposite sides are of equal length.
BThe diagonals are of equal length.
CThe opposite sides are parallel.
DThe diagonals bisect each other.