Doubt by Maria

Explain why oxygen exhibits -2 oxidation state and other members show +2 ,+4 And +6 oxidation states?