Pregunta de entrevista de Cognizant

Define inheritance in oops with a simple program.