Virtusa interview question

Explain about class cast exception, generalization , specialization.