Namibia
The age of consent is 16 for girls.
‘Sexual offences with girls under sixteen (16) years’, Section 14 of the 'Combating of Immoral Practices Act 1980'
'(1) Any male who
a) has or attempts to have unlawful carnal intercourse with a girl under the age of sixteen (16) years; or
b) commits or attempts to commit with such a girl an immoral or indecent act;
c) solicits or entices such a girl to the commission of an immoral or indecent act, -shall be guilty of an offence and liable on conviction to imprisonment for a period not exceeding six years with or without a fine not exceeding three thousand rand in addition to such imprisonment.
(2) It shall be a sufficient defence to any charge in terms of this section if it appears to the court -
a) that the girl at the time of the commission of the offence was a prostitute, that the person so charged was at the said time under the age of twenty-one (21) years and that it is the first occasion on which he is so charged; or
b) that the person who charged was at the said time under the age of sixteen (16) years ; and
c) that the girl or person in whose charge she was, deceived the person so charged into believing that she was over the age of sixteen (16) years at the said time.'
Read more about this topic: Ages Of Consent In Africa