Pergunta de entrevista da empresa Bloomberg

One base class and one inheritance class with same functions but different types of output, what's this?