How is epilepsy hereditary?

Can you answer this question?