Capgemini interview question

what is Decorators and Generators?