how do coral reefs protect the shorelines?

A.by trapping sediments
B.by serving as wind breakers
C.by serving as roch breakers
D.by preventing flow of waves​