Tech Mahindra Interview Question

They asked me about basic oops concept on HR round.