Pregunta de entrevista de Tata Consultancy Services

question on java oops concept