Question d’entretien chez Cognizant

Define inheritance in oops with a simple program.