Pregunta de entrevista de DXC Technology

regarding java and oops concept