Domanda di colloquio di Cognizant

what is inheritance explain with a program...