Capgemini Interview Question

what is Decorators and Generators?