Here, I think, parents have the option to not let their children participate in the lessons - at least in primary school - but it's really the exception rather than the rule. In secondary school, I am pretty sure most parents don't know about whether and when sex ed is taught.
no subject