Tech Mahindra Interview Question

Asked about oops concept related things