Domanda di colloquio di Tata Consultancy Services

Few inheritance programming question