Ovaries in females are analogous to testes in males, in that they are both gonads and endocrine glands.