Pregunta de entrevista de Tata Consultancy Services

What is inheritance? Give some example